Viewing 15 posts - 2,206 through 2,220 (of 7,191 total)
As far as I know, you can't - RESTORE DATABASE will leave the database owned by the user who performed the restore. You'll need to add the change of...
November 11, 2016 at 7:47 am
Just change your connection string(s) so they have the new server name. That should be all - there's no need for an application to know whether its database is...
November 11, 2016 at 7:09 am
What have you tried? If you show us that, we can show you where you're going wrong. Here's a hint: use CHARINDEX to find the position of the...
November 11, 2016 at 4:59 am
The reason your script fails is that the [font="Courier New"]EXEC @Variable = ProcName[/font] syntax writes the return value, not the output parameter value, into the @Variable variable. Return values...
November 9, 2016 at 9:28 am
Other reasons not to allow users to RDP on to the server:
(1) If users don't have access to log directly on to the server, you have a more secure environment...
November 9, 2016 at 9:19 am
This isn't the recommended way, but if it's only the query you want to modify, and you have no other way of doing it, you could edit the package file...
November 9, 2016 at 8:50 am
I'm sure if you type "find largest index in database" into your favourite search engine, you'll get a wealth of results. Or you could right-click on your database, choose...
November 9, 2016 at 7:08 am
Your transaction log size is a product of the activity in your database. You're in simple recovery mode, so as long as there's nothing preventing the log from being...
November 9, 2016 at 5:56 am
Just cast RegistrationDateTime as time and write your WHERE clause so it returns rows where it's less than '02:00' or greater than '15:00'.
John
November 8, 2016 at 9:47 am
Please supply table DDL for tableA, including indexes. How many rows are in the table? Are your statistics up to date? What happens if you add SELECT...
November 8, 2016 at 8:49 am
Perhaps the owner no longer exists on the server. Try joining sys.databases to sys.server_principals on owner_id = sid.
John
November 8, 2016 at 7:46 am
I think it's those double single quotes either side of @COLLEAGUE_ID. Try removing them and see whether you get the correct result.
John
November 7, 2016 at 8:18 am
SteveD SQL (11/7/2016)
I included the insert because I have been asked in the past to provide the data structures/processes.
Steve
Yes, you were right to do so. I just made the...
November 7, 2016 at 5:57 am
Steve
I see. I assumed that because you posted INSERT statements, you were actually using them in your package. I don't know how SSIS data flows handle default values....
November 7, 2016 at 4:45 am
Steve
Try this:INSERT dbo.Product ( ProductName) VALUES ('Product A', DEFAULT)
Presumably you know at design time which columns have default values? In that case, use a Derived Column transformation to change...
November 7, 2016 at 4:06 am
Viewing 15 posts - 2,206 through 2,220 (of 7,191 total)