Viewing 15 posts - 8,251 through 8,265 (of 8,731 total)
Sean Lange (11/2/2012)
November 2, 2012 at 10:12 am
Yoou really shouldn't be dealing with T-SQL if you don't know what UPDATE or EXEC are and what are they capable of doing.
Here's the script with the correction that I'm...
November 2, 2012 at 8:35 am
Try changing the EXEC (@SQLCmd) before the update.
November 2, 2012 at 8:22 am
You have your @SCLCmd Declaration in a different batch that ended at GO.
What are you trying to do?
The dynamic part is just changing the database you're on but your not...
November 2, 2012 at 7:58 am
Michael Valentine Jones (11/1/2012)
November 1, 2012 at 4:55 pm
Out of curiosity, have you tried the import/export wizard?
It's a simple tool, just be sure to read all the options available.
November 1, 2012 at 4:46 pm
mickyT (11/1/2012)
Luis Cazares (11/1/2012)
Micky,Your first query is not sargable and that would make it pretty inefficient compared to the second one. 😉
True :Whistling:
Not knowing what the data is for, I...
November 1, 2012 at 3:50 pm
Micky,
Your first query is not sargable and that would make it pretty inefficient compared to the second one. 😉
November 1, 2012 at 3:23 pm
Be careful methexis, because both queries aren't the same. One uses MAX and the other uses SUM. In this case the show the same results but it won't be like...
November 1, 2012 at 9:54 am
GSquared (10/31/2012)
On the other hand ... if anyone ever publishes "Trivial Pursuit, DBA Edition", they could come in very handy indeed!
Would you buy it? Or would you play it?
EDIT:...
October 31, 2012 at 2:12 pm
It's hard to be sure about what you need to do, but as I uderstood, you have a Sites table that is referenced by the OrderHeader table.
I'm thinking of 2...
October 31, 2012 at 9:29 am
Jeff Moden (10/30/2012)
Luis Cazares (10/30/2012)
I knew it was doable, but I believe is better to have an explicit CREATE TABLE statement for this situations.Why?
Why? Because I get paid by line...
October 30, 2012 at 6:48 pm
I knew it was doable, but I believe is better to have an explicit CREATE TABLE statement for this situations.
October 30, 2012 at 5:06 pm
There's a small confusion.
INSERT INTO, won't create a table, SELECT INTO will. Example:
--This will create a table
SELECT column1, column2, column3
INTO #TempTable
FROM MyTable
--This won't
INSERT INTO #TempTable
SELECT column1, column2, column3
FROM MyTable
Now, to...
October 30, 2012 at 2:21 pm
I believe there's a way to do it much simpler. But you'll need to test.
DECLARE @StartDate DATETIME
DECLARE @EndDate DATETIME
SET @StartDate = '1/1/2012'
SET @EndDate = '1/31/2012'
SELECT ER.EngEquipID
,ER.Location
,ER.Cycles
,ER.DateTimeStamp
,'Labor' AS Labor
,ISNULL( A.TRANS_tambase_amt, 0)...
October 30, 2012 at 8:53 am
Viewing 15 posts - 8,251 through 8,265 (of 8,731 total)