Viewing 15 posts - 31 through 45 (of 668 total)
if it's sql agent job, then make sure the service account that is starting the SQL Agent service has the proper permissions. Also, try putting in a try/catch block to...
July 21, 2021 at 7:57 pm
you can always use SSIS, but you'll need to install the ODBC drive (Microsoft.ACE.OLEDB)
July 21, 2021 at 7:53 pm
Without DDL, we don't know what EntityID is.
Try insert into config.entities (ListColumnNamesHere)
select .......
July 21, 2021 at 7:49 pm
All you need to do is check the Column Names in first data row box. I created a new SSIS package to test it. Created both source and destination connections...
April 2, 2021 at 2:52 pm
This will explain why SQL is returning only 6 decimal places. If you change @weight to this declare @weight decimal(15,13), ten it will return the value
April 2, 2021 at 1:37 pm
Jeff,
I don't have a script ready, but this script looks like it does what you want it to do
March 31, 2021 at 7:59 pm
Are you running the bcp command as you show it (i.e. spread over 2 lines)? Try to put it all on one line to see if it makes a...
March 31, 2021 at 6:50 pm
There are a few things wrong with you query. You need to use queryout to get that to work, but remember, that xp_CmdShell is actually shelling out to a...
March 18, 2021 at 2:42 pm
you can just add row_number() to the select. Not sure about the global temp table and not knowing the columns though. Do you know how many columns, datatypes, etc???
February 1, 2021 at 4:35 pm
Great example except for the last paragraph. No need for that.
February 1, 2021 at 4:29 pm
you changed the data in your second post. You get 4 rows for Dual Task because you are only joining TaskNameA to TaskNameB. There are 2 rows in...
January 25, 2021 at 8:46 pm
The error tells you exactly what the issue is. You are trying to insert a record that already exists in the table.
January 21, 2021 at 2:02 pm
What version of SQL are you using? I thought they were both available from 2016 forward. I copied and pasted my code above and stepped on a couple of fields. I...
January 21, 2021 at 1:13 pm
Try this, but I'm not going to guarantee any performance, but at least it flattens it out. The Code that was here was not copied correctly. Here is the updated...
January 15, 2021 at 6:40 pm
With DDL and sample data, I can only guess at using row_number over/partition clause
January 13, 2021 at 7:19 pm
Viewing 15 posts - 31 through 45 (of 668 total)