Viewing 15 posts - 8,806 through 8,820 (of 15,381 total)
devaji123 (4/3/2013)
Hi,Use Select max(identity column name) from table name (data inserted table). In one of our scenario we used this it worked. Try this.
Vasu
This is not a good...
April 3, 2013 at 8:42 am
Lynn Pettis (4/3/2013)
I'm curious, how do most of you like your dihydrogen monoxide, straight or flavored?
Fermented with barley and hops.
April 3, 2013 at 8:25 am
kapil_kk (4/3/2013)
But its giving me error that @new_identity parameter is not...
April 3, 2013 at 8:22 am
T.Ashish (4/2/2013)
This query is running slow due to a TABLE VALUED function in select clause. Definition of query and function is pasted below. Table...
April 3, 2013 at 8:13 am
Hi and welcome to SSC. It is nearly impossible to offer much assistance based on the details in your post. I am willing to help but I need something to...
April 3, 2013 at 8:04 am
Duplicate post. Direct all replies here. http://www.sqlservercentral.com/Forums/Topic1438227-150-1.aspx
April 3, 2013 at 8:02 am
This should work based on the sample data.
;with Marketing as
(
select *, ROW_NUMBER() over (order by MyName) as RowNum
from #Data
where Department = 'Marketing'
)
, IT as
(
select *, ROW_NUMBER() over (order by MyName)...
April 3, 2013 at 7:51 am
FunkyDexter (4/3/2013)
Can somebody help here. http://www.sqlservercentral.com/Forums/Topic1437758-391-1.aspx
I'm fairly sure he's trying to front load the Qty into the Aging column which is actually a capacity. I've put a better explanation...
April 3, 2013 at 7:31 am
Evil Kraig F (4/2/2013)
Sean Lange (4/2/2013)
sqlfriends (4/2/2013)
If I use drop FK,truncate table, import data, then add FKs,Then I don't need to figure out the order of the tables.
If you are...
April 2, 2013 at 3:31 pm
sqlfriends (4/2/2013)
If I use drop FK,truncate table, import data, then add FKs,Then I don't need to figure out the order of the tables.
If you are going to go that route...
April 2, 2013 at 3:06 pm
sqlfriends (4/2/2013)
Lowell (4/2/2013)
select
'ALTER TABLE '
+ QUOTENAME(schema_name(schema_id))
+ '.'
+ quotename(name)
+ ' NOCHECK CONSTRAINT...
April 2, 2013 at 3:02 pm
kk1173 (4/2/2013)
So both the queries will return same results? I want to include leading and trailing spaces from table2.If I understanding correctly, LTRIM/RTRIM does not make any difference.
If you want...
April 2, 2013 at 3:00 pm
If your data is violating your FK constraints, which from the sounds of your post it is, dropping the constraints to import the data isn't going to help. You will...
April 2, 2013 at 2:54 pm
kk1173 (4/2/2013)
Select * from table1 WHERE ColVal IN (Select AllVals from table2)
Is it not better to have the following instead? It will bring in those...
April 2, 2013 at 2:52 pm
bpowers (4/2/2013)
Thanks for the reply. I was hoping to accomplish this using some dynamic code, rather than maintain a static table, but that may be my best option. Thanks again.
Yeah...
April 2, 2013 at 12:39 pm
Viewing 15 posts - 8,806 through 8,820 (of 15,381 total)