Viewing 15 posts - 31 through 45 (of 50 total)
If you're not already familiar with it, you may want to look at the undocumented procedure sp_msforeachdb, as well as sp_msforeachtable. Very handy and very flexible.
Redgate (the sponsor of...
April 28, 2009 at 2:17 am
ddonck (4/27/2009)
2009-04-27 16:31:50.46 spid9s MODIFY FILE encountered operating system error 112(There is not enough space on the disk.) while attempting...
April 27, 2009 at 9:34 am
Chris Hancock (4/25/2009)
April 26, 2009 at 4:53 am
Chris,
I think I understand what you're after; you're basically envisioning one "version" of SQL for read/write, one (that may be tuned differently, etc) for reporting. A fairly common scenario,...
April 25, 2009 at 4:36 am
What do you see in the SQL logs? If this is a production server, it's probably rolling back transactions.
April 24, 2009 at 8:48 am
Jack, I won't speak for the OP, but I recently did something along the same lines, where the database name had to be generated dynamically to save me a ton...
April 24, 2009 at 7:34 am
Can you explain a little more clearly what you're trying to do, and the errors that you are receiving?
For a user who connects to the database through a domain account,...
April 24, 2009 at 6:05 am
looks like you're pretty close.
CREATE PROCEDURE x
@Section int
AS
BEGIN
if @Section=1
begin
Select Date, Customer, SalesAmount from Sales
end
else
if @Section=2
begin
Select date, vendor, PurchaseAmount, Tax from Purchases
end
END
GO
April 23, 2009 at 12:06 pm
how about
if exists (
select * from tableb )
begin
select columna, columnb, columnc from tableb
end
else
begin
select columna, columnb from tablea
end
David
April 23, 2009 at 10:35 am
ramadesai108 (4/23/2009)
I have a need not to show a column in a query result in a certain case. Here is my query:
SELECT ColumnA, ColumnB,
CASE WHEN...
April 23, 2009 at 10:33 am
I would make sure that your SQL service account has the necessary rights to the file (as opposed to your domain account).
Can you post the command you're using to attach...
April 23, 2009 at 7:57 am
Can you provide some samples of what you've tried, what type of input you're looking to get from the user, and what types of packages you're trying to run?
thanks
April 23, 2009 at 6:04 am
Is SQL running correctly now? I wasn't able to tell based on what you've written. By this I mean, can you create a new database and have everything...
April 23, 2009 at 6:02 am
Actually, SQL 2005 can use the Jet engine as a linked server. Under "Other Data Source", select "Microsoft Jet OLE DB Provider".
April 22, 2009 at 6:28 am
It sounds to me like you're still trying to answer the main question for yourself, especially since in a lot of ways you're asking two different questions: what queries...
April 22, 2009 at 6:17 am
Viewing 15 posts - 31 through 45 (of 50 total)