Viewing 15 posts - 751 through 765 (of 789 total)
I answered varchar(1), because I like to use varchar. I hate CHAR cause of big problem that can lead, and NCHAR NVARCHAR cause of waste of space.
June 5, 2009 at 9:59 am
Old style to write the WHERE condition.
I prefer to build a string ONLY with the true condition; it's more performing.
In a complex WHERE with useless condition may lead to a...
June 1, 2009 at 12:56 am
c:\ and C:\mssql\ should exists and sql account should have permissions to write.
May 11, 2009 at 1:15 am
this question is the same of "predict output".
Also the second answer is correct, cause of lack of ORDER BY.
April 22, 2009 at 12:52 am
Vaccano (4/21/2009)
Check your "Messages" tab after it has run. It outputs a report to that tab. (Though if you db is error free then it will do "nothing".)Vaccano
I...
April 22, 2009 at 12:47 am
Correct answer is 1-25:
exec sp_helptext sp_addmessage
in the output search for @severity and you'll find this piece of code that is the law.
--...
April 16, 2009 at 3:13 am
-- try to use this for replication:
set identity_insert my_table on
April 2, 2009 at 4:04 am
-- what about IDENTITY??
SET NOCOUNT ON
-- Just a simple test table
IF (OBJECT_ID('tempdb..#my_tab') IS NOT NULL)
DROP TABLE #my_tab
CREATE TABLE #my_tab (id INT NOT NULL IDENTITY(1000,1), any_date DATETIME)
-- Create...
April 2, 2009 at 2:45 am
--for a list of store proc/func/view/etc. and getting the body of proc/func/view/etc. run this query
--copy the resultset and paste it in a new querywindow, then run it.
set nocount on
select 'exec...
March 20, 2009 at 2:07 am
-- This proc print a statement to copy data from one table to another with same structure. e.g. transfering data between servers (production to develop)
-- I use it in...
March 11, 2009 at 3:19 am
Viewing 15 posts - 751 through 765 (of 789 total)