Viewing 10 posts - 1 through 10 (of 10 total)
I'm tasked with creating SSIS packages that import and export data to an ERP system as sales orders and invoices.
While I'm very familiar with using flat files in...
July 25, 2017 at 10:42 am
We have a bunch of old views that are used for cross-database queries and they were originally written using hard-coded database pointers. Of course after moving/renaming the databases a...
November 16, 2015 at 8:26 am
Eirikur Eiriksson (9/22/2014)
More for fun, here is an alternative "solution", set to return six digits and the decimal separator.😎
I like this solution because it handles the "dangling decimal point" issue,...
September 23, 2014 at 8:57 am
Luis Cazares (9/22/2014)
Am I missing something here? Wouldn't a simple LEFT() do the job?
The only problem with using LEFT() is if the value to the left of the decimal is...
September 22, 2014 at 3:18 pm
Dave62 (8/29/2014)
Thanks for the question Steve!I was hoping one of the answers was going to be "A supervisor who had too much caffeine".
:hehe:
Enjoy!
+1
August 29, 2014 at 9:30 am
I realize that it uses an undocumented Microsoft function, but rather than creating a stored procedure, couldn't you just use:
sp_msforeachdb 'select "?" AS db, * from [?].sys.tables where name like...
May 5, 2014 at 8:19 am
You could also use:
sp_MSforeachtable 'select ''?'' Tablename, count(*) ''Rows'' from ?';
though this uses an undocumented Microsoft function, and may go away at any time/be modified.
I originally got this code from...
April 24, 2014 at 8:58 am
RLilj33 (2/26/2014)
SELECT X AS 'Intersecting'
FROM A
JOIN b ON b.y = a.x;
Except the ordering. INTERSECT returns the values in...
February 26, 2014 at 8:11 am
Victor Kirkpatrick (10/18/2013)
Might be an easy one, but I learned something: the WITH VALUES clause. Thanks.
+1:-)
October 18, 2013 at 12:20 pm
I'm unsure how useful this script is for an 'active' database.
Running against our development server, with few if any active connections at the time, produced some interesting information,...
August 30, 2013 at 10:56 am
Viewing 10 posts - 1 through 10 (of 10 total)