Viewing 15 posts - 436 through 450 (of 548 total)
So how do you know that 1753-01-01 is a Monday? My guess is that you used DATEFIRST.
January 29, 2007 at 11:56 pm
If you try this
create table t(i int)
insert into t values(null)
insert into t values(1)
select sum(i) from t
You get 1.
January 29, 2007 at 10:17 am
Play it safe - wherever you are in the World! Whenever I deal with datepart(dw,...) I capture what it returns for a known date and take it from there. For...
January 29, 2007 at 10:00 am
Nothing wrong with that second join. But if you really insist, this is a way to do it.
create table files
(
fid int,
fname varchar(30)
)
insert into files values(1,'file1')
insert into...
January 25, 2007 at 2:11 am
So who is running the show? Who is accessing what?
If I'm logged in as a domain administrator and fire up Query Analyzer, login with a SQL Login (that happens to...
January 8, 2007 at 11:03 am
I even changed the user/password of the MSSQLSERVER service to a domain administrator and am still getting the same problem as Philipp. Very strange indeed.
January 8, 2007 at 6:47 am
I have just played around a bit with importing Excel data.
The essential bit on the SQL Server side of things is this piece of code:
select * from openrowset('Microsoft.Jet.OLEDB.4.0','Excel 8.0;Database=c:\tmp\Book1.xls',test)
But be...
January 7, 2007 at 5:49 am
And what should happen when all rows contain <NULL>?
To get what you want, every row has to link with all previous rows to find the first non <NULL> entry. And...
January 5, 2007 at 3:40 am
Indeed! The BOL doesn't say that the dbid parameter is optional. And I never thought about just leaving it out to get at the current db name. Thus my convoluted...
January 5, 2007 at 3:36 am
While on the topic, sometimes you want to know what database you're in:
declare @dbname varchar(30)
set @dbname=(select d.name
from master.dbo.sysprocesses p,master.dbo.sysdatabases d
where p.spid=@@spid and p.dbid=d.dbid)
January 5, 2007 at 3:26 am
I think the key is to go via a file. The FileToBlob routine can then be used to get it into a table. It is VB6 compatible.
The VB6 Picture control...
January 5, 2007 at 2:02 am
Great! And when you have finished writing the SP, publish a copy of it on this thread. Maybe then we'll finally understand the problem you are trying to solve.
What is amazing...
January 4, 2007 at 1:07 pm
Agree with Mark regarding 'last referenced field'. It's a bug somewhere in the ADO and/or MDAC layer.
The attached VBScript code should get you in the right direction especially in regards to...
January 4, 2007 at 11:03 am
Be more specific, please! What do you mean by 'calculate them'?
On second thought, I haven't got a clue as to what your problem is.
January 4, 2007 at 10:41 am
If 'real' does that, that's really cool.
December 27, 2006 at 8:38 am
Viewing 15 posts - 436 through 450 (of 548 total)