Viewing 15 posts - 76 through 90 (of 338 total)
My attempt at this one.
SELECT account,
checkindt,
CASE
WHEN...
July 2, 2014 at 2:57 am
Hello guys,
As rightly pointed out by Chris the query I posted earlier were having some issues.Please see refined one.
DECLARE @duration INT=20;
WITH cte
AS (SELECT TOP 1...
June 24, 2014 at 8:17 am
"External table is not in the expected format." typically occurs when trying to use an Excel 2007 file with a connection string that uses: Microsoft.Jet.OLEDB.4.0 and Extended Properties=Excel 8.0
http://stackoverflow.com/questions/1139390/excel-external-table-is-not-in-the-expected-format
June 24, 2014 at 4:02 am
Is it on the same machine where the SQL instance installed against which you are running the query ?
June 24, 2014 at 3:33 am
I think the problem must be with the access to network path
Database=\\192.168.1.20\upload\data.xls
June 24, 2014 at 3:18 am
ChrisM@Work (6/24/2014)
With a duration of 20, this returns an incorrect timeslot (2014-06-23 08:30:00.000 - 2014-06-23 09:15:00.000)
No it returns
(2014-06-23 09:15:00.0002014-06-23 10:00:00.000)
June 24, 2014 at 3:13 am
You can, but I wouldn't recommend it:
declare @str as table( val varchar(20))
insert @str select '12-FLA-2-02'
insert @str select '12-FLA-2-12'
declare @update varchar(20)='11111'
select * from @str
update @str set val=replace(val,LEFT(val, CHARINDEX('-', val)-1) ,@update)
select *...
June 24, 2014 at 2:42 am
You can use REPLACE function as well.
declare @str as table( val varchar(20))
insert @str
select '12-FLA-2-02'
declare @update varchar(20)='11111'
select * from @str
update @str set val=replace(val,LEFT(val, CHARINDEX('-', val)-1) ,@update)
select * from @str
June 24, 2014 at 1:52 am
The query is purely based on the sample data provided and all the assumptions stated in the earlier posts.
See if this helps.
DECLARE @duration INT=70
SELECT TOP 1 time_sched_start_dt,
...
June 24, 2014 at 1:20 am
In what format are the dates stored in the table ? Can you please post some sample data ?
June 23, 2014 at 3:38 am
Try setting up as "Outprocess"
To connect to Microsoft Access, SQL Server must start the Microsoft Access Database Engine. Unlike most other providers, Microsoft Access is not a light-weight provider, but...
June 23, 2014 at 3:28 am
Is the output for RunningTotal right based on the sample data you have provided ? If not then what it should be ?
June 23, 2014 at 3:21 am
What is the value of physical memory allocated to sql instance set to ?I think not enough memory(VAS) is available for the linked server.
How big is the Excel data ?
June 23, 2014 at 3:01 am
Is your SQL Server also a 32 bit ?If yes then it looks like the linked server has no memory available to pull the data.
How much memory does your server...
June 23, 2014 at 2:18 am
Viewing 15 posts - 76 through 90 (of 338 total)