473,544 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Microsoft SQL Server Forum

Microsoft SQL Server database RDBMS - Ask questions about MSSQL administration, queries, errors, xml, data access, transact-sql, tools, mirroring, integration, setup, stored procedures, merging and more.
1
2,308
thread by: Yogendra kul | last post Dec 30 '11 by: Kwolma
Hi: I got an error message when I am trying a select Query to import a table from Ms Access Database (.MDB File) in SQL Server 2005.i am using SQL Server 2005. The query I am testing is as below: SELECT * FROM OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0', 'Data Source="d:\Test.mdb";pwd=XXXX')...Employee The error message: OLE DB provider...
5
1,612
thread by: lachlanpearce | last post Dec 29 '11 by: Rabbit
Hi, I'm trying to write a Group By query. I have a table that looks like this: label value version Fee 25.99 5795 Term 3 5795 Terminated 0 5562 Terminated 1 5563 Terminated 0 5794
1
1,647
Adithya Adi
thread by: Adithya Adi | last post Dec 28 '11 by: Sivaranjani
I am a Beginner of SQL Server. 'm using SQL Server Management Studio. I'd like to know how can I avoid duplication in a Column other than Primary key. B'cuz I used a primary key in another column. eg. ID Name Age ---> Columns -- ---- --- 1. ID is Primary Key, 2. I don't want to enter the same name again,
1
1,478
thread by: Thomas G | last post Dec 25 '11 by: NeoPa
Hi, I am using an order by on a standard Insert .. Select into query. It is listed below. When I put an order by into the select statement, it gives an error of 'Incorrect syntax near the keyword 'order'.' However, if I remove the order by it works fine. If I run the select statement by itself, it works fine. Also, eventhough the records...
1
1,514
thread by: lachlanpearce | last post Dec 22 '11 by: ck9663
Hi, I have a table with these values: ========================================= column1 column2 column3 firstname 462 david lastname smith NULL =========================================
9
2,152
Palyadav
thread by: Palyadav | last post Dec 22 '11 by: Palyadav
How can i add below 4 field in Existing stored procedure ? DECLARE @StartTime datetime DECLARE @CurrentDate datetime Declare @Days int Declare @Hours int Declare @Minutes int declare @Second int SET @StartTime = EmployeeTempAttendanceDetail.EmpInTime SET @CurrentDate = EmployeeTempAttendanceDetail.EmpOutTime
2
1,938
thread by: nav mac | last post Dec 21 '11 by: nav mac
Hello, how can i send db tables as an xml format to my customer. In ssms there is an icon as 'Results to file' & when i right click on this i checked(checkbox) on XML Editor but my o/p window is empty. how can i acheive this ? can anyone please help me out in this regards. thanks, nav
2
1,771
thread by: saranya chellus | last post Dec 21 '11 by: ck9663
I need to execute one procedure automatically using timers in mssql. for example everyday it will executed automatically at the 12:00 00:00:00:000. Give me some codes for that...
1
1,452
PUROHITamitabh
thread by: PUROHITamitabh | last post Dec 21 '11 by: Rabbit
how to find the data type of a fild in a table.......................................
1
5,116
thread by: dsmith76 | last post Dec 21 '11 by: Rabbit
I have a maillist table which contains usernames of my entire membership list. Another table (Registry) has username as a foreign key. I am doing a checkbox form that reads from an SQL Server database and I don't want to have names on the checkbox list which are already included in the Registry table, because these people have already registered....
12
11,743
thread by: wamap | last post Dec 20 '11 by: SmartyMike
Hello , Can any one assist. I have a Street Address file and i want to split the information in the file into different columns. For example "100 SW 14th Street N, Suite 120" First. The script will capture the 100 into a new column called StreetNo. Was thinking of a scenario where the script does a count until it finds a space then stops....
0
1,487
ddtpmyra
thread by: ddtpmyra | last post Dec 20 '11 by: ddtpmyra
I need help to make this procedure copying file works for me. The error is Msg 50000, Level 16, State 1, Procedure sp_copyfile, Line 23 File copy failed USE GO /****** Object: StoredProcedure . Script Date: 12/20/2011 10:37:44 ******/ SET ANSI_NULLS ON GO
2
1,232
thread by: bkamal | last post Dec 20 '11 by: bkamal
Can anyone provide me the step by step instructions for Converting all the database from SQL server 2000 to SQL server 2005. I have an application that is not been used at all and the whole thing needs to be updated to sql server 2005. Please tell me what all things need to be done including the VB code as well and the database migration.
9
1,681
thread by: nav mac | last post Dec 19 '11 by: Rabbit
I have columns H,I,J,K,L,M in excel and a column M is the sum of (H,I,J,K,L)in excel but if I want to import the excel data to SQL how can I acheive this functionality. Also for each of the columns H through M ,I need the total at the end. eg: H I J K L M t1 t2 t3 t4 t5 (t1+t2+t3+t4+t5) tt1 tt2 ...
4
2,127
thread by: kisho | last post Dec 17 '11 by: kisho
i have created on table Customer which have column as primary key and IDENTITY(10000000,1). What i want is how can i insert values for the table using INSERT INTO Customers values(<values>) query Be cause it generates "An explicit value for the identity column in table 'Customer' can only be specified when a column list is used and...
7
2,262
Palyadav
thread by: Palyadav | last post Dec 16 '11 by: Rabbit
ALTER PROCEDURE . @LeaveApplicationId int, @LeaveId int, @EmployeeId int, @LeaveApprovalFromDate datetime, @LeaveApprovalToDate datetime, @LeaveApprovalHalfDay bit, @LeaveApprovalApplicaitonDate datetime, @LeaveApprovalDuration numeric(18,2), @LeaveApprovalDate datetime,
0
1,694
thread by: madankarmukta | last post Dec 15 '11 by: madankarmukta
Hi, This is with regards to the RDLC Subreports. Here is what I tried - on the form load 1) attached the handler with the event subreportprocessing 2) loaded the subreport definition 3) Inside subreportprocessing handler, added a datasource
1
2,788
thread by: dharol | last post Dec 14 '11 by: ck9663
Total newbie here, many apologies if I have failed to find an extant answer to this question. Using: SQL Server 2000 I need to restore several hundred databases from an external drive to local drive. Would like to batch, eg, call on a text file listing old and new db names/paths and loop through to end of text doc. Currently have...
4
1,542
Palyadav
thread by: Palyadav | last post Dec 14 '11 by: Palyadav
;with cte as ( select empid, cast(datepart(hh, logtime) as varchar(2)) + ':' + right('0' + cast(datepart(mi, logtime) as varchar(2)), 2) as logtime, row_number() over (partition by empid order by logid) as row from #timing ) select c1.empid as EmployeeID, min(c1.logtime) as InTime, max(c2.logtime) as...
1
2,475
thread by: prakash mhatre | last post Dec 13 '11 by: Bailifeifei
I want to restore backup from mapped network drive which i have shared in MSSQL server 2003. I have mapped a network drive & given sharing to the folder. I am using a batch file to restore it...contains of the file is as below : SQLCMD -i RESTORMIS.txt -o RESTOR_outpu.log and RESTORMIS.txt contains as below : RESTORE DATABASE PRODRDCC FROM...
10
1,796
thread by: rajkrishna | last post Dec 12 '11 by: Rabbit
I hope you can help me. I am trying to generate a report using 3 tables - sttakehm, sttakedm and stquem. I wrote below query but it is giving all values of unit_cost, I only need the unit cost which matches stquem.sequence_number=sttakedm.queue_reference and adjustment quantit. The key is sequence number is in one line with Kind = "C"...
8
6,085
thread by: lucindaa | last post Dec 12 '11 by: shilpz
For Example I have Table name called "tbl_certificate" Fields as follows id Certificate name 1 Secondary 2 Highersecondary 3 Undergraduate
2
3,203
thread by: Prashanth Rao | last post Dec 12 '11 by: Prashanth Rao
select stuff((select ','+ from <TableName> for xml path('')),1,1,'')
0
1,140
thread by: lanceonhis | last post Dec 11 '11 by: lanceonhis
We have two systems on developed in .net running off a SQL back end. We have a second data table in DB2 running a whole separate system. I need to dynamically copy data from the ms SQL table to DB2 how can I do it any suggestions?
2
2,151
thread by: jonathan184 | last post Dec 11 '11 by: jonathan184
Hi I am trying to get my query to work in my middleware which piggybacks off of the mssql driver using jdbc. Anyway, The query gets this error when i run in it the middleware ERROR: Failed to create input and/or output schema(s): "Duplicate field name found 'NAME', please modify the query and create unique aliases for duplicate fields"" The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.