Viewing 15 posts - 226 through 240 (of 9,641 total)
You need to add the -b option to get sqlcmd to return a DOS ERRORLEVEL. From BOL for SQLCMD:
-b on error batch abort
Specifies that sqlcmd exits and returns a...
November 12, 2015 at 12:10 pm
I'm not excel expert, but the query you attached is not complete. The code ends with a "," which tells me there is at least one more CTE that...
November 12, 2015 at 12:00 pm
Can you post the real SP?
Here's an example I put together that works:
IF OBJECT_ID('tempdb.dbo.DateTest', 'U') IS NOT NULL
BEGIN
...
November 12, 2015 at 11:53 am
If the table is small you may not be able to remove any more fragmentation because of how the data is stored internally.
November 12, 2015 at 11:42 am
Do you have a "state" table where you can convert the state_id to the state code? If you do your code would look something like this assuming a dbo.state...
November 12, 2015 at 11:31 am
YOu need to make your parameter DATETIME, DATE, or DATETIME2 because you are getting the error trying to put 12/1/2079 into the parameter. If you aren't using the...
November 12, 2015 at 11:24 am
Sean Lange (11/12/2015)
Brandie Tarvin (11/12/2015)
Sean Lange (11/12/2015)
djj (11/12/2015)
Grant Fritchey (11/12/2015)
November 12, 2015 at 7:59 am
As soon as I posted the question I started getting notifications. I just had several hours where I got none.
-Jack
November 10, 2015 at 2:04 pm
Is anyone receiving forum notification emails? I'm not.
November 10, 2015 at 12:22 pm
I'm still looking at the query to find a better way, but the "simple" answer is that you can't do:
CASE [column] when [value] and [other condition]
You have to do it...
November 10, 2015 at 11:38 am
ben.brugman (11/10/2015)
Jack Corbett (11/9/2015)
November 10, 2015 at 8:31 am
Right-click on the source and select Show Advanced Editors. Then click on the Input and Output Properties tab, expand OLE DB Source Output, expand Output Columns, and select the...
November 10, 2015 at 8:09 am
1. Database corruption is almost always caused by storage hardware issues. You should be talking with your storage admins in addition to your VM admin to find out...
November 9, 2015 at 11:54 am
Anton Bardin (11/8/2015)
I am trying to import attendance data from MS Access DB to MS SQL 2012 with SSIS. Access staff table has text field with IDs matching MS...
November 9, 2015 at 11:45 am
1. Execute SQL Task that truncates Server2.Staging1
2. Dataflow task that reads all the data from Server1.Source1 and loads into Server2.Staging1
3. Execute SQL task that loads Server2.Destination1 using a query...
November 9, 2015 at 11:43 am
Viewing 15 posts - 226 through 240 (of 9,641 total)