Viewing 15 posts - 5,371 through 5,385 (of 13,460 total)
take a look at this forum post;
in the middle of it I've produced a script that exports all the database mail settings and profiles;
the only tough part is the SMTP...
Lowell
June 16, 2012 at 11:10 am
here's one way to do it, but at some point, you have to make a logical decision about what database to use.
by using synonyms, you can reuse the same code,...
Lowell
June 15, 2012 at 10:04 am
yes, you'll need either a VPN or a firewall hole to get to the DMZ server;
the whole purpose of the DMZ was to isolate it from contact for security purposes....
Lowell
June 15, 2012 at 8:59 am
here's a couple fo examples:
note the end date, you might want to change that to be just lss than, unless you want to include midnight on 01-15-2012
--Hardcoded:
SELECT * From [SQLTable]...
Lowell
June 15, 2012 at 7:05 am
or even better:
I've only done this for testing,but not in production:
research a little deeper on how to rename the sa user to something else, and create a regular user named...
Lowell
June 15, 2012 at 5:58 am
with all the concerns about losing customer data, it's a pretty big liability hole;
how about putting them on a seperate SQL instance,instead of that production server, and that would...
Lowell
June 15, 2012 at 5:54 am
what you posted originally was using an explicit connection string, and no DSN; did you ever confirm that you can connect from another machine?
Lowell
June 15, 2012 at 5:47 am
bump it to the groups that handle the contracts and RFP's;
for example bring the issue up with the contracts/legal department; check to see if the contract explicitly states they...
Lowell
June 15, 2012 at 5:42 am
dwain.c (6/14/2012)
Lowell - Another nice learning experience from you. That's now 2 in as many days!
I see this was introduced in SQL 2005. Any idea if it can...
Lowell
June 15, 2012 at 4:41 am
If you have all the descriptions ready so you can script them; I would drop if exists and re add themback no matter what forget if the values are there...
Lowell
June 14, 2012 at 7:36 pm
if it exists at all, even with old values?
this example would use IF EXISTS (i think!) to check if it's already there:
IF NOT EXISTS(SELECT 1
...
Lowell
June 14, 2012 at 2:47 pm
i think either of these will do what you are asking:
SELECT *
FROM tbl_usermain FirstGuy
INNER JOIN tbl_user_friends FirstFriends
ON FirstGuy.user_id = FirstFriends.user_id
LEFT OUTER JOIN...
Lowell
June 14, 2012 at 2:29 pm
something like this i think?
select
Rented.make,
Rented.model,
Rented.year,
Rented.location,
Rented.agent,
Rented.status,
Returned.status
from Rentals Rented
LEft Outer Join Rentals Returned
ON...
Lowell
June 14, 2012 at 1:42 pm
i would probably tackle it with a scheduled job, or in a service broker fired on database restore or database creation.
it depends on what exactly you are trying to do,...
Lowell
June 14, 2012 at 12:27 pm
you can use a case statement to return a specific column value based ont heparameter passed:
/*
--Results
2.3
1.79
*/
SELECT [dbo].[ExRateProc]('USD',GETDATE()) As Results
SELECT [dbo].[ExRateProc]('oops',GETDATE()) As Results
CREATE TABLE [dbo].[ExRates](
[ID] [int] IDENTITY(1,1) NOT NULL,
[ratedate] [date] NULL,
[USD]...
Lowell
June 14, 2012 at 11:03 am
Viewing 15 posts - 5,371 through 5,385 (of 13,460 total)