Viewing 15 posts - 136 through 150 (of 215 total)
I got wrong.Because i did not observe the semicolon.
July 12, 2010 at 10:15 pm
CTE is new feature in SQL server in 2005 which uses the result set as a table and you can join the result set with some more table.CTe is use...
July 7, 2010 at 10:36 pm
I didn't execute the code, but I was definitely helped by the title, "Table Variable: Doesn't Care"... All the same, it's a good question that's pointing out interesting and completely...
July 7, 2010 at 12:12 am
sheik (6/27/2010)
The table should be created with the identity (-1,-1). Then only we can get this result. Must be a typo error???.
It's correct.
June 27, 2010 at 11:47 pm
Create Table MyTable( mainkey int not null identity (-1,1))
GO
insert into MyTable default values insert into MyTable default values insert into MyTable default values
Select * from MyTable
this will give result...
June 27, 2010 at 11:45 pm
good question. but i also expected that result is A,B,C.
June 24, 2010 at 9:42 pm
DECLARE @AAAATABLE TABLE(
K INT IDENTITY(1,1)
,V1 VARCHAR(10)
,V2 VARCHAR(10)
)
DECLARE @DATATABLE TABLE(
V1 VARCHAR(10)
,V2 VARCHAR(10)
)
INSERT INTO @DATATABLE(V1,V2)
SELECT 1 AS V1, 2 AS V2...
June 22, 2010 at 2:04 am
got it wrong and i thought that, 1 as something in select into statement by default it will allows.but learned that it will not allows null.I worked more on select...
June 17, 2010 at 11:19 pm
for working with linked servers you can use system store procedures to add linked server.use the following
USE master
GO
-- To use named parameters:
EXEC sp_addlinkedserver
@server = 'SF-PC035',
@srvproduct =...
June 17, 2010 at 3:29 am
Hi,here i am unable to see your picture.
this topic is similar to my thread.
Please go through the thread you will find the answer.
http://www.sqlservercentral.com/Forums/Topic922837-338-1.aspx
June 16, 2010 at 11:24 pm
I read msdn article for more than two hours.and finally answered correct and it is a complex topic and i learned some thing new about encrption.
Can any body send entire...
June 16, 2010 at 1:09 am
good question on select into...
I had one point to add.
the following gives an error.
select IDENTITY(int,100,5),* into #temp3 from
testread
there is no alias for identity column.so it shold throw an error.because every...
June 14, 2010 at 12:03 am
Carlo Romagnano (6/11/2010)
There is nothing new learn from this question.
The lesson is:
"GO" may be dangerous if no error checking is done!
This type Go questions and answers and disscussions are there.
Please...
June 11, 2010 at 4:08 am
Viewing 15 posts - 136 through 150 (of 215 total)