Viewing 15 posts - 3,481 through 3,495 (of 13,462 total)
here's a basic example for connecting, does this help?
'form a command that waits longer than 30 seconds for testing
Dim sqlcmd As String...
May 10, 2013 at 11:04 am
Brandie Tarvin (5/10/2013)
j2cagle (5/10/2013)
May 10, 2013 at 8:16 am
it's just a syntax issue, where you are doubling up the SET and SELECT unnecessarily;
I think you want to simply assign the variable directly in the SELECT:
SELECT
...
May 10, 2013 at 7:34 am
in both vb6 or VB.Net, you can split the string into elements, and take the first element, or you can use the built in string functions.
'VB.Net: both return "ABC"
...
May 10, 2013 at 7:13 am
Here's another idea I had put together a simple Reporting grid app for our end users;
it's a windows app featuring the DevExpress Report Grid;
on the left, it has a list...
May 10, 2013 at 6:55 am
for SQL 2008, I know there's nothing in the GUI to help.
there's registry keys here which seem to allow you to enable it or disable it, but i don't remember...
May 9, 2013 at 12:15 pm
well if you have a hardcoded list, you could modify it like this:
IF EXISTS(SELECT 1 FROM #Results
WHERE Login =...
May 9, 2013 at 12:01 pm
here's a quick adaptation of another post i did for almost the same thing;
you'd need to tweak the mail settings, assuming you have db mail all set up:
--2005/08
IF (SELECT...
May 9, 2013 at 9:33 am
modified from a similar post on the same subject, i think this would do exactly what you are asking:
--Prevent access from SSMS
--drop TRIGGER logon_trigger_not_from_SSMS on all server
CREATE TRIGGER logon_trigger_not_from_SSMS...
May 9, 2013 at 7:17 am
mail2payan (5/9/2013)
I am getting following result of the T-SQLIDTheOutput
1nt authority\system
2NULL
3NULL
4Access is denied.
5NULL
that confirms my thoughts on permissions to the shared folder...
when you access any resource OUTSIDE of SQL server, like...
May 9, 2013 at 6:16 am
I would not do file operations in a trigger, but what you have looks like it will basically work.
I think the issue might be no permissions for SQL server to...
May 9, 2013 at 5:58 am
well, you can get the quick list for bcp (or sqlcmd, it's newer, updated replacement)
by running it from the command line window with the /? flag
bcp /?
sqlcmd /?
for the basic...
May 8, 2013 at 3:04 pm
a linked server is a server object in master.sys.servers...so once you connect with SSMS, whether it's local or remote instance of SQL, you can create or use linked servers...
May 8, 2013 at 2:35 pm
in that case, i'd change the name of the file to something that was generated to represent teh actual date, like this: (but why only for Wilson?)
--20130508-16-23-28-040.xml
SELECT REPLACE(CONVERT(VARCHAR(35),getdate(),112) + '-'...
May 8, 2013 at 2:26 pm
is the question "how do i run this query every x minutes?"
the answer is to create a scheduled job in the SQL Server Agent, that reccurs every hour or whatever...
May 8, 2013 at 12:59 pm
Viewing 15 posts - 3,481 through 3,495 (of 13,462 total)