Viewing 15 posts - 946 through 960 (of 1,838 total)
Is this file really in the root of C: ? If so it could be a permissions issue.
May 17, 2017 at 10:28 am
instead of trying to make the batch file change users with RUNAS, you could use credentials and proxies as mentioned above to more easily store the OS login and password...
May 15, 2017 at 7:12 am
Why do you need the dynamic SQL in variable @sql1 here? Couldn't you just set @sql2 directly:
...
SET @sql2
May 12, 2017 at 12:55 pm
in your SSIS Data Flow, one of the available Transformations is called Derived Column. Put that task between the source and destination tasks. Here's an article describing in more detail...
May 9, 2017 at 2:20 pm
You could do this in a Derived Column transformation, with an expression such as:REPLACE([ColumnName], "-duck", "- duck")
May 9, 2017 at 2:02 pm
you can specify the schema name of the original object in the @objname parameter, you just cannot specify a schema name in the @newname parameter.EXEC sp_renane @objname...
May 9, 2017 at 10:10 am
sp_rename only renames the object itself, you can't change the schema it is in, so when you specify the @newname, don't put the schema name in that. The documentation explicitly...
May 9, 2017 at 9:59 am
May 9, 2017 at 9:47 am
It is the preferred way to do it, keeping the PK and FK enabled. What problem were you having?
May 9, 2017 at 9:35 am
A good place to start with general troubleshooting may be looking at the database waits:
https://www.sqlskills.com/blogs/paul/wait-statistics-or-please-tell-me-where-it-hurts/
this can give you a general feel for what's the biggest problem in...
May 9, 2017 at 8:01 am
May 9, 2017 at 7:17 am
I'm thinking there's something wrong in this script... when I run it against one of my development databases on a table with 6 indexes, it only shows 2 of them,...
May 8, 2017 at 1:50 pm
Databases don't really have a "version" as you've described it, you can find the version of the instance you are connected to like this:SELECT
May 5, 2017 at 3:05 pm
If you just need a week number within a year, the DATEPART function can handle that, but if you really need to figure out weeks by month, it might make...
May 5, 2017 at 2:54 pm
I store my SSIS passwords in a third party password manager, along with the rest of my database related credentials for service accounts and any SQL authenticated logins. I keep...
May 5, 2017 at 1:31 pm
Viewing 15 posts - 946 through 960 (of 1,838 total)