Viewing 15 posts - 7,666 through 7,680 (of 13,469 total)
it's integer division;
sql shortcuts and says integer / integer = integer, s 3 / 2 = 1 for example, and not 1.5, so you lose decimal places.
chnage it to...
May 5, 2011 at 10:24 am
change it again. if you typed in the password in a config file, it's in clear text in that file and a security risk of the highest order.
create a...
May 5, 2011 at 9:55 am
why can't you just issue an ALTER VIEW command? don't you already know it exists, or is this script a create/recreate in case of an empty database?
May 5, 2011 at 9:42 am
Leonard see this post from yesterday, where someone posted the same question:
http://www.sqlservercentral.com/Forums/Topic1103306-146-1.aspx#bm1103313
To prevent the DROP of objects,where the user normally might have permissions to do so, you'll have to use...
May 5, 2011 at 8:19 am
just add additional columns from the original table to teh query:
SELECT
TheDate,
RUN_TIME,
USERS_COUNT,
CONNECTION_COUNT
FROM
(SELECT
DATEADD(dd, DATEDIFF(dd,0,RUN_TIME), 0)...
May 5, 2011 at 8:07 am
i think this is clsoer to what you are trying to do:
IF you can find a date in the description, set the [Date] field to that value:
UPDATE [Intermediate invoices]
SET [Date]...
May 5, 2011 at 7:58 am
doh; it should be more like GSquared; remove the USERS_COUNT, CONNECTION from the PARTITION statement.
SELECT
TheDate,
USERS_COUNT,
CONNECTION_COUNT
FROM
(SELECT
DATEADD(dd,...
May 5, 2011 at 7:23 am
I've tried updating the first one while using the below query :
INSERT INTO [Intermediate invoices] (Date)
Select distinct convert(datetime,[Description 7],105) from [Intermediate invoices]
you said trying to UPDATE, but your command is...
May 5, 2011 at 7:18 am
here's the data in consumable format for other posters; I'm still trying to get my head around the requirements:
With MySampleData
(AgentID,State,StartTime,EndTime,Duration)
AS (
SELECT '1234','NotReady','04-05-2011 08:00:00','04-05-2011 08:00:05','5' UNION ALL
SELECT '1234','Ready','04-05-2011...
May 5, 2011 at 7:15 am
John I'm not saying this is the right way to do it, this just happens to be how I thought it might work;
how about creating a table CustomerAlias, and it...
May 5, 2011 at 7:01 am
yeah it requires, at a minimum, a new query window if you add a new keyboard shortcut; restarting is more than you needed, but it works too!

May 5, 2011 at 6:56 am
so does this give you the results you were looking for?
SELECT
TheDate,
USERS_COUNT,
CONNECTION_COUNT
FROM
(SELECT
DATEADD(dd, DATEDIFF(dd,0,RUN_TIME), 0) As TheDate,
...
May 5, 2011 at 6:42 am
oskargunn my apologies; i pasted the wrong script from my collection; I've edited the example above, which should do what you wanted for your example.
May 5, 2011 at 6:39 am
ok, it's possible in HTML, but how to inject it into a report is the part i cannot help with.
you can google "CSS highlight TR" for code examples, but essentially,...
May 4, 2011 at 3:24 pm
Mad-Dog (5/4/2011)
I've a table with those columns (datetime,int,int) in this table i insert every hour a record of getdate() and two int value.
my question is how i can write the...
May 4, 2011 at 12:59 pm
Viewing 15 posts - 7,666 through 7,680 (of 13,469 total)