Viewing 15 posts - 436 through 450 (of 1,923 total)
You can not insert data into 2 tables simultaneously in a single session.
But if u split the insert statements into 2 statements, it is going to give you the...
March 8, 2012 at 5:51 pm
Wat were u trying to do actually?? is there a question here?
March 8, 2012 at 4:46 pm
For starters, here is a sample code
IF OBJECT_ID('TempDB..#Temp') IS NOT NULL
DROP TABLE #Temp;
CREATE TABLE #Temp
(
UserName VARCHAR(10),
EventDt DATETIME,
filDate DATETIME
)
INSERT INTO #Temp
...
March 8, 2012 at 11:29 am
Read about ROW_NUMBER here : ROW_NUMBER .. This is exactly what you need!
March 8, 2012 at 11:21 am
Dear Siva,
No one is picking on you. All tehy say, you MUST consider speed and efficiency of the application(or code) while designing or suggesting
Here is the set-up on a million...
March 6, 2012 at 1:19 pm
You may want to read about Triggers which do exactly what you wanted!
Link : DML Triggers
March 5, 2012 at 10:06 pm
okbangas (3/5/2012)
Gail is correct in his definition
Gail is a HER , not a HIS 😀
Gail Shaw is one of the MVPs of SQL Server and the best I have seen...
March 5, 2012 at 4:52 pm
Going by your logic, shouldnt row 2 be deleted also?
March 5, 2012 at 3:48 pm
Is this it?
SELECT Description, SUM(Balance)
FROm Table
GROUP BY Description
March 4, 2012 at 4:07 pm
R.P.Rozema (3/4/2012)
ColdCoffee (3/2/2012)
SELECT OutTab.TABLE_NAME,
STUFF ( (
SELECT ', '+InTab.COLUMN_NAME
...
March 4, 2012 at 1:02 am
Wats your expected result from that sample table?
March 3, 2012 at 3:33 pm
This?
SELECT OutTab.TABLE_NAME,
STUFF ( (
SELECT ', '+InTab.COLUMN_NAME
...
March 2, 2012 at 3:58 pm
Look at taht.. Reply in 25 mins.. thats what provide sample data and tables will do!
March 2, 2012 at 2:00 pm
Similar to Rory's , but doenst require a ROW_NUMBER
SELECT OutTab.title ,OutTab.[subtitle] ,
Cities =
...
March 2, 2012 at 12:14 pm
SQLHeap (3/2/2012)
Select tablename, col1, col2, col3, etc. on just 1 row and dynamically. In this...
March 2, 2012 at 12:06 pm
Viewing 15 posts - 436 through 450 (of 1,923 total)