Viewing 15 posts - 301 through 315 (of 388 total)
I agree with Steve. I have picked my copy of "inside TSQL programming" and "Inside TSQL querying" a few months back.
December 25, 2007 at 12:48 am
You can use the same CASE expression (that you used for select) inside the WHERE clause. For example:
-- create a table variable
DECLARE @numbers TABLE (Number INT)
-- fill the table
INSERT INTO...
December 25, 2007 at 12:43 am
I guess you have posted the question in the wrong forum. You should have posted it in SQL Server 2000 forums.
SQL server 2000 does not have the view sys.triggers. Read...
December 24, 2007 at 11:56 pm
Another option is to use a VIEW. Create a view from the original table and select the columns in the required order and forget about the table. Use the VIEW...
December 21, 2007 at 2:40 am
DECLARE
@FirstOfThisMonth DATETIME,
@LastOfThisMonth DATETIME,
@FirstOfLastMonth DATETIME,
@LastOfLastMonth DATETIME,
@FirstOfNextMonth DATETIME,
@LastOfNextMonth DATETIME
SELECT
@FirstOfThisMonth =
CAST (
CAST ( YEAR (GETDATE()) AS VARCHAR ) + '-' +
CAST ( MONTH (GETDATE()) AS VARCHAR ) + '-' +...
December 21, 2007 at 1:12 am
There are dozens of schema editing tools available on internet. I have not tried any of them. I mostly work with the schema/xml editing tools of Visual Studio 2005 and...
December 19, 2007 at 11:32 pm
Vasudev Tantry (12/18/2007)
Tell me.. how to take the reference of last record updated in my destiny, an Oracle Datbase Table and copy the next record from my...
December 19, 2007 at 2:39 am
There is nothing wrong with package variables and xml configuration files. I think this article sent a wrong message to many of the readers. I agree that a better way...
December 12, 2007 at 6:29 am
The scope of a server alias is limited to the local computer. Hence if two different computers have the same alias defined, there will be no conflict. Each computer will...
December 12, 2007 at 4:20 am
I am not aware of any such setting. XML is a built-in data type like INT or VARCHAR. So there should not be a special setting to enable it.
try SELECT...
December 11, 2007 at 8:45 am
SQL Server 2000 does not support the XML data type. If you want to work with parameters in XML format, you can still pass them as TEXT and use OPENXML()...
December 10, 2007 at 9:06 am
Manish Sinha (12/10/2007)
December 10, 2007 at 6:46 am
sergiotorres (12/8/2007)
I could not find a way to get the xml representation of the datatable into a variable (my thought was to assign that variable to an ado.net command parameter).
I...
December 9, 2007 at 11:10 am
WriteXml() does not work that way. It does not return a string. You need to create a stream object first and pass it to the method. The content of the...
December 9, 2007 at 8:56 am
Viewing 15 posts - 301 through 315 (of 388 total)