473,553 Members | 2,930 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,152
yarbrough40
thread by: yarbrough40 | last post Aug 6 '12 by: ck9663
Gang, I am currently outputting data into text files using BCP and "exec xp_cmdshell". The other day a peer of mine saw my code and said that this was 'ancient technology'. Funny thing is, he didn't bother to tell me what I should be using instead. I know I could probably be using SSIS but for this specific purpose I wanted to keep it within my...
2
1,642
thread by: Peter Gaerty | last post Aug 7 '12 by: Mudassir
I want to be able to set a invoice issue date. and have it automatically update by 30days in the invoice due date. In a Microsoft Access Database. Thanks for your help. Peter
3
4,279
syedshaffee
thread by: syedshaffee | last post Jul 31 '12 by: Rabbit
Hey People, I'm Getting "arithmetic overflow error converting expression to data type int" While Updating And Deleting Please Look @ the Following Attachment Below And This Error Only Occurs For One Record.
9
8,826
thread by: yasirzafar | last post Jul 29 '12 by: john garvey
i want to do something like this; for-example; Set vote = true for all rows in tbl_emp where pk_tbl is in the comma separated value list. update tbl_emp set vote=true where pk_tbl in @empl_vote_true Where, @empl_vote_true = ’12,23,345,’ (IDs of the employees),
2
2,805
thread by: lohima | last post Jul 26 '12 by: Rabbit
hi i want to get date difference between two columns. month and DOJ in days. month is integer datatype and doj is in time stamp. the colums data was like this. i mentioned '|' in btw of 2 columns for your clarification. doj | month_sid 5/30/2008 12:00:00 AM | 201103 5/19/2008 12:00:00 AM | 201111 5/19/2008 12:00:00...
3
2,903
thread by: SQLnewbie2012 | last post Jul 24 '12 by: ck9663
I have a table in SQL with the following columns and data: First_name is Joe Last_Name is Smith Zipcode is 12345 Join_date is 05012011 xmldata is <data>Network Admin</data> <definition_field_id>beaa46b0-d1bb-408a-a5cc-56764f8562b6</definition_field_id> <validation_status>Valid</validation_status>
2
20,470
thread by: mybabyloveyou | last post Dec 9 '13 by: swathee
Select DeptName,IPDID,Sex,FactorName,DeName,ProvinceName, Jobs,MaritalStatus,LifeInsuranceType from ViewIPDReport Where DateAdmitted BETWEEN '01/06/2012' AND '30/06/2012' But error: Msg 241, Level 16, State 1, Line 1 Conversion failed when converting date and/or time from character string. Please Help me... Thank you in...
-
-
thread by: deiv82 | last post Jul 17 '12 by: deiv82
4
2,211
thread by: Brian Connelly | last post Aug 4 '12 by: ariful alam
I have a Invoice Number that can appear in either two tables (history = table A and current= table B) which have all the same fields, but not both tables at one time. I want to check If the invoice is in table A and if so then grab other fields, if not check table B. How would I write a Case statement of If Statement for this?
2
1,606
thread by: kkshansid | last post Jul 16 '12 by: Rabbit
i have a table in format item_id packet_no 1 4 1 5 2 6 3 7 3 8 3 9 4 10 4 11
2
1,670
thread by: gangadhar NG | last post Jul 12 '12 by: gangadhar NG
Sql server service stops immediately after starting.What are the possible reasons behind it? Please explain. Thanks in advance.
2
1,374
thread by: gangadhar NG | last post Jul 12 '12 by: ck9663
If i create an index on Varchar column, It improves the query performance? Yes or No.Explain Thanks in advance
1
1,872
thread by: herranto | last post Jul 12 '12 by: ck9663
Hello masters! I'm trying to figure out whether it's possible to obtain SSRS reports using information from Access. I mean, I've read that I can link SQL Server 2008 with MS Access (link server), but I still haven't found if I can use this link to get Access information and generate reports with SSRS. I would appreciate if anybody could help me...
4
2,355
thread by: sanndeb | last post Jul 12 '12 by: sanndeb
I have a table with one column that contains blank(''), null, numeric & varchar data. So when I wanted to find values which are numeric & between a range I wrote something like select Value from Table1 where isnumeric(Value)=1 and Convert(numeric(10,2), Value) between 110.00 and 115.00 which works fine. But when I change the order of the...
1
2,055
thread by: mybabyloveyou | last post Jul 11 '12 by: ariful alam
It error like this: The request failed or the service did not respond in a timely fashion. Consult the event log or other applicable error logs for details. Help me please
1
2,546
thread by: Vinay Bishnoi | last post Jul 9 '12 by: ck9663
I have a VB.Net application that uses ODBC connection to interact with database. I have configured DSN from contol panel and tested it successfully. But when i am trying to connect to that DSN from my VB.Net application then it shows error that SQL server does not exist of access denied. One another thing, when i run an old .exe file of same...
1
1,902
thread by: RyanK | last post Jul 3 '12 by: Rabbit
Issues with a SQL trigger, it takes 10 seconds to run and I cannot see why...please can you help: USE GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER TRIGGER . ON .
3
1,889
thread by: lohima | last post Jul 4 '12 by: Rabbit
Hi, i had a table like below which contains some rows and columns. rowid a b c 1 2 3 now i want the output like
0
1,701
thread by: cuqsy0 | last post Jun 28 '12 by: cuqsy0
Hello, I downloaded SSIS 2012 (beta) and try to learn it. Lession 1 can be done without problem. Now I proceed to add ForEachLoop at step 3 in lesson 2. In step 3, it needs to modify the Flat File Connection Manager, following Microsoft course guide I proceed to 3. In the Properties Expressions Editor dialog box, in the Property column,...
2
2,423
thread by: gjain123 | last post Jul 3 '12 by: gjain123
Hi All, We are implementing a solution using java where we will pass xml data to SQL stored procedure, then stored procedure will parse that data. The data can have special characters and SQL server specific keywords like DEFAULT etc. How can we make sure that the special characters (both xml and SQL Server specific) and SQL server specific...
2
2,463
thread by: Brian Connelly | last post Jun 25 '12 by: Brian Connelly
I want to loop through a table and count the ids where they are equal to a tables ids, however if the Id count is equal to 1, I would like to put that id into a table. I.e. I am trying to get the ids from a table where the id inly exists in one row. If the id exists in two or more rows, then it is excluded from my results. Can you please share...
1
3,459
thread by: raghurocks | last post Jun 21 '12 by: raghurocks
hai all can anyone explain me how to pass the tablename as parameter in storeprocedure..thanx in advance........
1
6,042
thread by: Parul Vinod | last post Jun 20 '12 by: Rabbit
I was running the following code in sql server 2000 dev. edition 1. BEGIN 2. NULL; 3. END; when i got the error: incorrect syntax near the keyword ‘NULL’. I also tried: 1. SET SERVEROUTPUT ON SIZE 1000000 2. BEGIN
5
2,074
thread by: BobbyRajputDurg | last post Jun 19 '12 by: ck9663
i have one query Where When i m filtering data on the basis of 2 dates it will take 2 min to execute but when i remove that condition it takes 1 sec, only
0
1,478
thread by: nileshmantri | last post Jun 15 '12 by: nileshmantri
I have problem for executing hibernate query for selecting japanese data which is in NVARCHAR datatype column. If I Prefix literal unicode strings with 'N' in HQL query, it will give exception as --> org.hibernate.hql.ast.QuerySyntaxException: unexpected token: '日本語' Any help will be Appreciates. Thanks, Nilesh

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.