| Thread | Last Post | Replies |
|
| Sub Queries Question | 01 Nov 2008 00:38 GMT | 1 |
I have 2 seperate queries which give me 2 seprate view objects, then I do inner join between 2 view to get my result. How can I do this with 1 query using sub queries? Here are my queries:
|
| What's wrong with this cursor | 01 Nov 2008 00:30 GMT | 4 |
I am test some stored procedure that consists of a cursor. The procedure utilizes pubs database. However, I cannot seem to get to compile it properly. I would appreciate any help to resolve this matter. CODE:
|
| Using BCP method | 01 Nov 2008 00:16 GMT | 2 |
Is there any other method like the bcp that will allow exporting of header row? go declare @sql varchar(8000) select @sql = 'bcp "select * from twc..vw_dvdn" queryout c:\123.csv -c -t,
|
| Can't save Procedure containing EXEC | 01 Nov 2008 00:02 GMT | 5 |
1. I have a SQL2000 database which I attached to SQL2005. 2. I wrote a stored procedure containing a number of EXEC statements calling other procedures. 3. When I try to save the procedure, I get the messages below:
|
| Enums in UDT | 31 Oct 2008 21:51 GMT | 1 |
It seems that we can't deploy in SQL Server, a UDT that contains an enumeration. I get the following message: Error 4 Type "TestSecurityMichel.SecurityFilterContext" is marked for native
|
| T-SQL - How to using View | 31 Oct 2008 19:43 GMT | 1 |
This seems simple enough; could even be a student's homework problem. But I am not a student in a SQL class, and I would like to know how to do this using a view. I c could easily do this using a cursor each time, but a view would be better still.
|
| Move database files to my application's folder | 31 Oct 2008 18:22 GMT | 3 |
I'd like to move my database files to my application's folder. How can I do that? Thanks
|
| mdf file is too big! | 31 Oct 2008 18:03 GMT | 4 |
I have an aspnetdb database that has only a few items in it but it is still 2.5 megs. Is there some way I can make it smaller? Thanks
|
| 2 Decimal places in a calculation? -Newbie Needs Help | 31 Oct 2008 17:45 GMT | 5 |
I need help with the syntax in getting only two decimal places in a division calculation. Using SQL 2005. I looked up convert decimal but can't figure out how to apply it in the calculation. I use the * 1.0 to get a decimal point. SELECT COUNT(dbo.CM.CMDate) AS [Calls Monitored] ...
|
| I cant run schedule job. | 31 Oct 2008 17:37 GMT | 2 |
Error: Executed as user: dbo. The EXECUTE permission was denied on the object 'xp_cmdshell'<c/> database 'mssqlsystemresource'<c/> schema 'sys',. Could you please tell me how to fix
|
| Spreadsheet like table - 2 (Rookie) | 31 Oct 2008 16:51 GMT | 27 |
From the following tables: ************************ EXPENSES Id_Expenses (num)
|
| trigger firing web service? | 31 Oct 2008 16:03 GMT | 2 |
Is it possible for a SQL Server 2000 trigger to call a web service? One of the fields in my database contains a lengthy XML string. When a new record is inserted, I'd like to pass that XML string to a web service written in C# so I can process it.
|
| ALTER TABLE | 31 Oct 2008 11:40 GMT | 1 |
I have 2 tables - Table1 & Table2. There is a column named Col1 in both the tables. Col1 is the PRIMARY KEY in Table1. I want Col1 in Table2 to be the FOREIGN KEY of this PRIMARY KEY column. How do I make Col1 in Table2 the FOREIGN KEY using the ALTER TABLE
|
| View turns slower at once | 31 Oct 2008 11:37 GMT | 2 |
I have created a view, that is pretty fast when getting the records. One of the fields is a date that I use to get my data for a certain period of time. I now find the following:
|
| Where not exists | 31 Oct 2008 11:31 GMT | 2 |
I have some SQL that I want to return all agents that are not returned by a statement. I am using a WHERE NOT EXISTS statement around the main statement to do this but it doesn't return anything where it should return 2 agents.
|