Viewing 15 posts - 946 through 960 (of 13,469 total)
i've done something similar.
i use sys.views and not information schemas; there's a LOT of information missing in those compatiblity views, so i avoid them like the plague.
select
'exec...
June 7, 2016 at 9:24 am
i've had to address the same problem.
McAfee usually installs on an instance of SQL Express which has a hard internal limit of ten gig on the database;
available disk space will...
June 7, 2016 at 9:12 am
TexasJohn (6/7/2016)
exec sp_addlinkedserver @server=N'AccessSchedule'
,@srvproduct=N''
,@provider=N'Schedule'
,@datasrc=N'LocalServer'
exec sp_addlinkedsrvlogin AccessSchedule,False,NULL,Admin,NULL
Where Schedule is the name of a DSN file on the SQL server
Now when I run
exec...
June 7, 2016 at 8:59 am
Luis Cazares (6/7/2016)
Try this:
SELECT sys.fn_get_folder(path, 1)
jerking my chain or is that new in 2016?
i tried 2008/2012/2014 and below with no luck.
;WITH MyCTE([path])
AS
(
SELECT 'c:\Programmefiles\Dicument\file1.txt' UNION ALL
SELECT 'c:\Programmefiles\Dicument\Subdocument\file1.txt' UNION ALL
SELECT 'c:\Programmefiles\Dicument\Image\file1.txt' UNION...
June 7, 2016 at 7:44 am
since you've set up teh DSN and the linked server, do you get a list of tables from this command that you could then query?
exec sp_tables_ex [AccessSchedule]
you get results that...
June 7, 2016 at 7:33 am
ZZartin (6/7/2016)
Do you have the target set up as a fixed width file?
is the datatype of the source CHAR/NCHAR and not varchar/nvarchar?
exporting char values maintains their defined length.
you'd probably want...
June 7, 2016 at 7:27 am
how does whitespace wreck the import?
importing a csv is fairly straight forward;
you could bulk insert directly to a staging table, and trim the data before it inserts into the permanent...
June 7, 2016 at 7:09 am
DennisPost (6/6/2016)
Thanks for taking the time to read and reply.
That approach won't work for us as the server is set to UTC and we need to be able to...
June 6, 2016 at 1:15 pm
it sounds like your UTCToLocal functions are scalar which are notoriously slow, where including some datemath columns as the calculated value would definitely be faster since it would be treated...
June 6, 2016 at 10:57 am
floats are a pain. As Luis said, the underlying value is still digits, but when being presented in the GUI or exported out again, it's a bit ugly.
when converting a...
June 3, 2016 at 7:37 am
mw112009 (6/2/2016)
The objective here is to update one field with a | delimited statement using the rest of the fields.
This works out well....
June 2, 2016 at 12:43 pm
I'm now offering certifications in SQL Fertilization. If you act now i'll offer you 50% off my already low price of $99.
June 1, 2016 at 2:44 pm
A DOS attack, as in denial of service attack?
That's a very poor way to try and justify disabling that setting. I don't believe the person who developed the list knew...
June 1, 2016 at 6:37 am
not sure why you think it's a security violation.
if database mail is enabled, the only users that can use it are sysadmins of sql, or users who have been...
June 1, 2016 at 6:08 am
rajemessage 14195 (6/1/2016)
q2) is not answered. will it do any good by removing or deleting.
if the only thing the query is doing is a SELECT statement, neither the XACT_ABORT nor...
June 1, 2016 at 5:09 am
Viewing 15 posts - 946 through 960 (of 13,469 total)