Viewing 15 posts - 2,236 through 2,250 (of 7,191 total)
Steve
I think what I would do is this:
(1) Import your file into a staging table
(2) Move the rows with no product or valid product to the destination table
(3) Handle the...
November 1, 2016 at 5:48 am
sp_MSForeachdb will return one result set for each database and therefore you can't put the results into your destination table with a single INSERT statement. You'll need to embed...
November 1, 2016 at 3:47 am
Steve
I'm finding it hard to visualise this. Please will you show us the table structure and sample data, the SQL to create the foreign key constraint, and some of...
November 1, 2016 at 3:40 am
Thom's right. Go to the Security tab on your Linked Server properties and change the connection to Be made using this security context, and enter your SQL login name...
November 1, 2016 at 3:01 am
Indeed. The double-hop issue means you can't use Windows authentication for your linked server unless you have Kerberos configured on the remote server. Have a read about it....
October 31, 2016 at 10:42 am
It sounds as if you're suffering from the double-hop problem. You need either to create a SQL login on the remote server for the linked server object to use,...
October 31, 2016 at 10:20 am
Yes, I did say "it may". It depends what you're familiar with and what the wider requirement is. I'm more comfortable with a single DOS command and the...
October 31, 2016 at 7:58 am
If you have xp_cmdshell enabled, it may be simpler to run a dir command and put the results into a staging table. You can then count the number of...
October 31, 2016 at 6:47 am
Your error has severity 16 - that will only abort the current statement, which means that your batch will continue to run after the error. Higher level errors (19...
October 21, 2016 at 6:00 am
Does the exception in the trigger raise an error message? What is its severity number?
John
October 21, 2016 at 4:19 am
My question is this: if you have 90GB of memory and more on your server, why not let SQL Server use it? But I agree, let's see the execution...
October 19, 2016 at 8:26 am
Guras (10/18/2016)
The database DOES exist. I have queried the sys.databases as well to verify that it exists.
That's one thing eliminated, then. All that's left is either you don't...
October 19, 2016 at 3:00 am
The only way you can know is by actually restoring the databases. You can give yourself a headstart by using the CHECKSUM option in your backups, and doing RESTORE...
October 17, 2016 at 3:24 am
There's a big risk of SQL injection if you do it that way. Can you not have your presentation layer (Excel spreadsheet, SSRS or whatever) do the sorting? ...
October 14, 2016 at 8:41 am
If I've understood correctly, you want to load from one database and then from another and then from another. A config file is only for specifying properties of a...
October 14, 2016 at 8:18 am
Viewing 15 posts - 2,236 through 2,250 (of 7,191 total)