Viewing 15 posts - 2,161 through 2,175 (of 8,731 total)
ghughes (9/21/2016)
I have 2 tables and I am attempting to match models. (they are described...
September 21, 2016 at 9:03 am
You need to add spaces between the parameters, use the correct field delimiter (you stated comma but the sample uses tab), set the first row (to skip the header), set...
September 21, 2016 at 8:06 am
Please, also share a sample of your input file.
Here's also the best explanation I've had on importing flat files: http://www.sqlservercentral.com/articles/BCP+(Bulk+Copy+Program)/105867/
September 21, 2016 at 7:37 am
Can you start by sharing a sample of the file? It might be possible to do it during the import, but I can't be sure without a sample.
September 21, 2016 at 7:33 am
Eric M Russell (9/20/2016)
Luis Cazares (9/20/2016)
Here's an alternative that doesn't rely on undocumented procedures....
Yeah, but Microsoft doesn't officially support your method either. :satisfied:
Doesn't support or doesn't have documentation on...
September 20, 2016 at 2:18 pm
Please, disregard my previous post as it does the opposite of what you asked.
Here's a corrected code:
DECLARE @DatabaseName NVARCHAR(130)
DECLARE DatabaseList CURSOR LOCAL FAST_FORWARD FOR
select QUOTENAME(name)
from sys.databases
where name IN...
September 20, 2016 at 1:24 pm
Here's an alternative that doesn't rely on undocumented procedures.
DECLARE @sql nvarchar(MAX) = '';
SELECT @sql = (SELECT 'DROP TABLE ' + QUOTENAME( DBName) + '..' + QUOTENAME(TableName) + ';' + CHAR(10)
...
September 20, 2016 at 1:10 pm
It's not syntactically correct.
SQL Server does not have a boolean data type, it only has a bit data type.
Your BEGIN has no END.
You're RETURN does not have anything to...
September 20, 2016 at 12:36 pm
You have an ISNUMERIC function in T-SQL. That can be misleading, but it works: http://www.sqlservercentral.com/articles/ISNUMERIC()/71512/
Instead of using To_Number, To_Char & To_Date, T-SQL has CAST and CONVERT. You can also use...
September 20, 2016 at 11:28 am
braidensjones (9/20/2016)
I was a bit confused by a section in the article where it's stated that,
"Note that when dealing with negative numbers, CEILING will continue to go away from...
September 20, 2016 at 10:58 am
Could it be referring to something like a catch-all query?
http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
September 20, 2016 at 10:19 am
Brandie Tarvin (9/20/2016)
Jeff Moden (9/19/2016)
September 20, 2016 at 8:44 am
John McC (9/20/2016)
people need to round only if it would round down.
That would imply an OriginalValue...
September 20, 2016 at 7:29 am
You just need an additional condition.
SELECT name
FROM Sys.databases
WHERE name not in ( 'tempdb', 'master', 'ReportServer' )
AND HAS_DBACCESS(name) = 1;
September 9, 2016 at 2:01 pm
Sean Lange (9/9/2016)
The Dixie Flatline (9/9/2016)
I have been making bacon like that for years...never knew it had a name. Another great way is to put a liberal amount...
September 9, 2016 at 12:36 pm
Viewing 15 posts - 2,161 through 2,175 (of 8,731 total)