Viewing 15 posts - 3,196 through 3,210 (of 49,571 total)
Right-click -> tasks -> Import Data. It's below 'generate scripts'
April 21, 2016 at 7:53 am
I strongly recommend, with only a few columns like you appear to have, to avoid dynamic SQL.
It's easy to get wrong, and it's prone to horrible security flaws (used,...
April 21, 2016 at 7:42 am
Luis Cazares (4/21/2016)
BLOB_EATER (4/21/2016)
Luis Cazares (4/21/2016)
Brandie Tarvin (4/21/2016)
April 21, 2016 at 7:35 am
So it will tell you what row, the row in the table with the matching username to the row in the spreadsheet.
In that case, import the spreadsheet into a database...
April 21, 2016 at 7:34 am
IIF was added in SQL 2014, but in earlier versions you'd use CASE (IF is control flow)
CASE WHEN [PDT_ORG_4_CDA LIKE 'X%'
...
April 21, 2016 at 7:31 am
Oh, so what, in the spreadsheet tells you what row in the table the new email address belongs to?
April 21, 2016 at 7:10 am
You can't parameterise column names.
If you have a small number of options, separate queries (or better separate procedures). Since the query implies there are only a few columns in the...
April 21, 2016 at 6:58 am
Try this
DECLARE @CurrentDate DATETIME = GETDATE() --'2016-01-01'
select DATEADD(qq,1,DATEADD(yy,DATEDIFF(yy,0,DATEADD(qq,-1,@CurrentDate)),0))
April 21, 2016 at 6:45 am
What's the definition of the table and where is the list of new values?
April 21, 2016 at 4:09 am
glen_malcolm (4/19/2016)
Thanks all of you for your input and advice, next trick is to find out and to learn restore processes...
The book I linked should have restore details as well.
April 21, 2016 at 3:04 am
I'll go for a nice round number.
13.0.1600
(or if you want it expressed to 4 numbers, 13.0.1600.00)
April 21, 2016 at 3:01 am
Azure VM loaded with server 2012 R2. The uninstallers and upgrades often tend not to work 100% effectively on CTPs and RCs.
As for what DB, depends what I'm doing. If...
April 21, 2016 at 2:52 am
Try using sys.dm_exec_text_query_plan instead of sys.dm_exec_query_plan. You get the same plan back, but it's a varchar/nvarchar type, not xml, and so avoids that error.
And again, that's not going to be...
April 20, 2016 at 9:00 am
A word of caution. Scalar functions can be horrible for query performance. If you're planning on using that function within another query, you're likely to end up with a really...
April 20, 2016 at 8:57 am
Ed Wagner (4/20/2016)
GilaMonster (4/20/2016)
Ed Wagner (4/19/2016)
SQLRNNR (4/19/2016)
GilaMonster (4/19/2016)
And more homework in the forums. Is it wrong to want to post a sensible-looking but completely incorrect query as answers?Do it!
Are you...
April 20, 2016 at 6:20 am
Viewing 15 posts - 3,196 through 3,210 (of 49,571 total)