Viewing 15 posts - 91 through 105 (of 1,315 total)
It would be enlightening to hear what environment actually requires the CHAR(13). Everything I've tried is happy with plain old CHAR(10), or is smart enough to recognize that as an...
August 7, 2018 at 1:59 pm
Just to nitpick, this drives me crazy:
SELECT 'string expression' + ';
END'
+ CHAR(13) + CHAR(10) + 'GO'
+ CHAR(13)...
August 7, 2018 at 11:58 am
There is no question that XML causes the data files to bloat. On the other hand, it is much less ambiguous than swapping CSV files with knuckleheads who don't know...
August 7, 2018 at 11:38 am
The restore location is the original file locations, or you can use RESTORE VERIFYONLY ... WITH MOVE to specify somewhere else. Either way, the restore location is always defined.
August 6, 2018 at 8:02 am
If you are using DBCC CHECKDB you should have no trouble looking up the syntax for adding REPAIR_ALLOW_DATA_LOSS.
And while you're at it, do some research on what might go...
July 31, 2018 at 2:02 pm
You have to be a sysadmin (under default settings) to run xp_cmdshell. Also, in both cases, the directory has to be readable by the SQL Server service account. And I'm assuming...
July 24, 2018 at 3:36 pm
You could experiment with these commands:EXEC sys.xp_dirtree '\\tntfappl11.companyname.net\Project012\1.Cust\LDSH\4\7', 1, 1;
EXEC sys.xp_cmdshell 'DIR \\tntfappl11.companyname.net\Project012\1.Cust\LDSH\4\7\*.csv';
You would want to create a temp table or table variable...
July 24, 2018 at 2:12 pm
Anyone recommending that you should avoid the FLOAT datatype should be reminded that all the functions in this calculation (SIN, COS, ATAN, SQRT) will convert their parameters to FLOAT and...
July 18, 2018 at 7:38 am
If you have tab-delimited files exported with BCP, and loade them into Notepad++ or another editor that can highlight special characters, you may see a lot of NUL (char(0)) values. ...
July 17, 2018 at 11:13 am
You don't provide rowcounts, but a large delete may be faster if done in chunks.
WHILE 1=1 BEGIN
DELETE TOP (10000) FROM table WHERE condition;
...
July 16, 2018 at 9:41 am
It's not a question of syntax, you just can't change the ConfigurationFilter property of a configuration item at run time.
There are ways to change the values that are...
July 6, 2018 at 11:30 am
CREATETRIGGER should be two words, CREATE TRIGGER.
If you ever insert more than one row into Jobs, the trigger will fail at SET @foundguid = (subquery), as the subquery...
June 29, 2018 at 7:18 am
I have used DELETE with OUTPUT to implement FIFO queue behavior. In one atomic operation it can delete the first row from the queue table and return the values from...
June 28, 2018 at 10:55 am
The only plausible interpretation of "table creation sequential order" to me is an order that puts referenced tables ahead of tables with foreign keys that reference them. Creation date is...
June 22, 2018 at 8:01 am
Viewing 15 posts - 91 through 105 (of 1,315 total)