Viewing 15 posts - 241 through 255 (of 375 total)
"Minimal thinking effort is always useful in programming"![]()
My theory goes:
The entire human progress was driven by the lazy ones.
The whole objective of the...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 13, 2007 at 7:02 pm
Another reason to format the datetime on the GUI is sorting. If you return a dataset with a datetime column and you present it in the data grid you have...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 13, 2007 at 4:47 pm
If you need the size of the tables including the index pages then use this
SELECT name, dpages, reserved, rows
FROM sysindexes
WHERE indid = 0
AND impid = -1
ORDER BY name
Where reserved is...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 13, 2007 at 4:11 pm
Size of a table is not a precise requirement but if you run this you should get the number of datapages used by each table and number of records.
DBCC UPDATEUSAGE...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 13, 2007 at 4:07 pm
SQLBill,
Thanks for the reply.
Since the app and the server reside on the same computer I was just trying to get an opinion if one of the authentication methods (Windows or SQL) is...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 12, 2007 at 7:23 pm
Sergiy,
Of course I noticed the post that fixed the original function. This is the "-Add more of the red tint. -Worked fine, thanks" exchange in my little "non-technical' recap.
The biggest...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 12, 2007 at 7:07 pm
Let me recap this for you using non technical terms
- I have a red paint but the color comes out pink.
- Add more of the red tint.
- Worked fine, thanks.
-...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 12, 2007 at 8:42 am
Instead of using #temp table use the table variable. It should work faster and is not creating any locks on the master db. And yes, sometimes when the initial record...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 12, 2007 at 6:36 am
If Tomm's solution works then this might be a bit faster because it should only do one pass thru the table. Since I have no data I could not test...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 11, 2007 at 12:41 pm
Scott,
If you do not bulk insert you may just use a SP that will accept data for both tables and inside your SP you insert part of the data into...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 11, 2007 at 12:28 pm
Oh boy, I think there is more then 5 of us watching this...
I just don't understand what the argument is all about anymore....
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 11, 2007 at 12:13 pm
The problem might be in your sp_SearchText.
As I mentioned above you should not use the ROUTINES view to search the text of a SP. (To see the code INFORMATION_SCHEMA.ROUTINES uses -...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 11, 2007 at 10:41 am
In this case just replace the
'%[^''a-Z .,-]%'
with this
'%[^' + CHAR(128) + '-' + CHAR(255) + ']%'
and see if it works for you
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 8, 2007 at 11:00 am
Is something like this you are looking for?
SELECT S.item, MAX(Invoicedate)
FROM Stock AS S
LEFT OUTER JOIN Invoicedet AS I ON I.item = S.item
GROUP BY S.item
HAVING ISNULL(DATEDIFF(day, MAX(Invoicedate), getdate()), 61) >...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 8, 2007 at 8:13 am
Very logical post but totally misses the point.
THE BANKERS ROUNDING IS NOT ABOUT PRECISION!!!
It is about distribution. It is STATISTICAL function.
This disussion was fun for a while but it is...
---------------------------------------------
[font="Verdana"]Nothing is impossible.
It is just a matter of time and money.[/font]
June 8, 2007 at 7:19 am
Viewing 15 posts - 241 through 255 (of 375 total)