Viewing 15 posts - 841 through 855 (of 13,460 total)
ismahmoud (10/13/2016)
select * into LinkedServer.[DB_Name].[dbo].[Table_Name] FROM Server2.[DB2_Name].[dbo].Table2_Name
but give this error:
Msg 117, Level 15, State 1, Line 1
The object name 'LinkerserverName.DB_Name.dbo.Table_Name' contains more than the maximum number...
Lowell
October 13, 2016 at 4:48 am
mcfarlandparkway (10/10/2016)
In the main table I have added a column called fullamount. Basically this fullamount column is coming...
Lowell
October 10, 2016 at 4:07 pm
ok bulk has to references files ON THE SERVER or a fully qualified UNC path
so unless the SQL server is on your local machine, you need to move the...
Lowell
October 10, 2016 at 11:07 am
andrew gothard (10/10/2016)
My guess would be the SQL Server service account not having access to that location. Can't see the location / file => file doesn't exist
Agreed. C:\Users\username\{anything} is...
Lowell
October 10, 2016 at 9:37 am
all those packages are actually stored in an[image] data type in the [msdb].[dbo].[sysssispackages] table.
you could preview them or manually convert them to xml stringsand save them to disk.
select convert(nvarchar(max),convert(varbinary(max),packagedata)) from...
Lowell
October 8, 2016 at 8:57 am
your Columns table would need the column name, data type+ size and probably whether it's null/not null;
defaults and foreign keys, even when coming from our definitions table would be...
Lowell
October 8, 2016 at 6:40 am
rperetz (10/5/2016)
This does not work for Gmail.
Gmail, like many other client applications, have an option to prevent images from showing unless the sender is trusted. I had to do that...
Lowell
October 5, 2016 at 5:47 pm
based on experience, you won't find a one-function-to-rule-them-all address cleanup. break it up into smaller pieces that complement each other.
there's too many exceptions to the patterns;
what I've done previously is...
Lowell
October 5, 2016 at 6:24 am
SQL-DBA-01 (9/26/2016)
Wanted to know if there is there any way to have database names aliases in SQL Server?
For example, there is a database with Name: "database A". Can...
Lowell
September 26, 2016 at 2:56 pm
there's a neat trick using FOR XML to get a delimited list of columns.
here's a snippet i wrote that i use in a procedure to generate sample insert/update/merge statements.
it assumes...
Lowell
September 20, 2016 at 4:32 pm
First, use Central Management Servers or Registered Servers; that will be where you add new servers as you discover them.
That functionality is built into SQL Server Management Studio, so there's...
Lowell
September 20, 2016 at 7:44 am
Besides running the script with an impersonated credential, which solves the SQL problem,i would think you need an explicit path to your sql file:
sqlcmd -S myserver -E -i "C:\Data\AutomatedScripts\DeleteRecordsTest.sql"

Lowell
September 13, 2016 at 7:40 am
for a large script, you'll want to execute it via sqlcmd instead of trying to open it in SSMS and executing it.
Lowell
September 12, 2016 at 5:54 am
did you try selecting from the temp table, and left joining the larger table?
from your description, it sounds like your first table is the larger table, and you inner join...
Lowell
September 12, 2016 at 5:42 am
you are doing it correctly, but it depends on what is doing the presenting.
In Grid mode in Management Studio, CrLf are ignored(converted to spaces) FOR PRESENTATION ONLY, if you copy...
Lowell
August 30, 2016 at 7:56 am
Viewing 15 posts - 841 through 855 (of 13,460 total)