Viewing 15 posts - 151 through 165 (of 5,356 total)
Why would you want to do this?
I think the only way might be to write your own extended procedure or instantiiate a wrapper Active X Dll via sp_OA* procedures. But...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 7, 2005 at 6:30 am
...and incorrect ![]()
Since we want 5 minutes buckets, it should read something like this:
SELECT [Hour],
REPLACE(STR(StartingInterval,2),' ','0') + '-' + REPLACE(STR(StartingInterval+4,2),' ','0') AS interval,...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 7, 2005 at 6:20 am
I might be missing something, but when you pass DATETIME parameters and compare with DATETIME values, there is no conversion needed at all. However, if LogTime is a varchar, CAST...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 7, 2005 at 5:55 am
See if this helps: http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/ss2kidbp.mspx
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 7, 2005 at 3:03 am
I like to think that this is not only a techie place, but a community where those thoughts can be shared. Echoing Steve: Thanks for that and best of luck!...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 7, 2005 at 2:26 am
Read this http://www.microsoft.com/resources/documentation/sql/2000/all/reskit/en-us/part3/c1161.mspx closely and decide then which way to go.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 7, 2005 at 2:24 am
...too quick. I would still schedule this for off-peak usage hours. Depending on how large your table actually is.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 6, 2005 at 8:08 am
Yes, there is. But when you use Enterprise Manager, it will use the interim table method.
One method might be to have Enterprise Manager create the change script and save...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 6, 2005 at 8:07 am
Are you looking for this?
SELECT
LEN(CLPHN) AS PhoneLength
, CASE
WHEN LEN(CLPHN)>7 THEN substring(CLPHN,1,3)
ELSE ''
END AS ClientAreaCode
, rtrim(ltrim(CLPHN)) AS ClientPhoneNumber
, CLPHN
FROM CLIENTPF
ORDER BY CLNUMBER
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 6, 2005 at 8:03 am
When you recreate the clustered index on that new filegroup, you don't need an interims table.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 6, 2005 at 7:41 am
Yes, Enterprise Manager uses another way. It will create an interims table, move data there, create target table and move the data from interims table to target table. Not terribly...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 6, 2005 at 7:29 am
Recreate the clustered index on that new filegroup. To speed this up you can use WITH DROP EXISTING. See BOL "CREATE INDEX" for complete syntax.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 6, 2005 at 7:09 am
http://www.sqlservercentral.com/columnists/fkalis/abriefhistoryofsql.asp
I like to think it is S-Q-L ![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 6, 2005 at 6:08 am
Where are those check boxes? I can only find CREAT / DROP < object > ![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 6, 2005 at 6:04 am
Now it's my turn to apologize. My wording was a bit inappropriate, I guess
Btw, is the original question finally answered? ![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
June 6, 2005 at 5:11 am
Viewing 15 posts - 151 through 165 (of 5,356 total)