473,545 Members | 2,057 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.
15
1,919
thread by: glennyboy | last post Oct 20 '14 by: glennyboy
good day. sample database: table1 col1 col2 col3 A item1 100 A item2 200
1
6,700
thread by: Mudassir | last post Oct 25 '14 by: Luuk
Hi every one. i want to write a query to get the records of last 12 months in sql like in LINK in its ARCHIVES section at side bar. any kind of help will be greatly appreciated. Regards Mudassir
1
1,406
thread by: robertybob | last post Oct 27 '14 by: robertybob
Hi, I have an application that used to need SQL Server but no longer does. I have removed all database modules and references to SQL wherever I can find it. I have also removed the Prerequisite checkbox for SQL Server 2008. However the application still has the following notice on installing. Component SQL Server 2008 Express has failed...
1
1,261
thread by: anand000925 | last post Oct 27 '14 by: Frinavale
How to convert this sql statement to storeproc? select "Dly_DC_LostSlsSnpsht_v"."PlntCd" "Plnt_Id_Cd" , "Dly_DC_LostSlsSnpsht_v"."DivCd" "Div_Cd" , "GlblCatSum"."GlblCatSumCd" "Gbl_Cat_Sum_Cd" , (coalesce("GlblCatSum"."GlblCatSumDesc", 'Unknow')) "Gbl_Cat_Sum_Desc" , "Dly_DC_LostSlsSnpsht_v"."ProdtCd" "Prod_Cd" ,...
2
1,599
thread by: DENNISG | last post Oct 27 '14 by: Frinavale
Hi,Am Dennis and I interact with Sql server on my daily bases.Am currently loading my data on my sql server to be used in OPENCBS and it is working well.The problem is when I try to add a new client in OPencbs am receiving the below error Violation of PRIMARY KEY constraint 'PK_Persons'. Cannot insert duplicate key in object 'dbo.Persons'. The...
1
1,418
thread by: phanikumar32 | last post Oct 30 '14 by: Rabbit
Hi All, I am trying to append two tables,those present in my database. The theme i want to output as,display all the columns from both the tables in the result. Means that if the first table contains 3 columns and the second table contains 4 columns. so Total 7 columns i want to display in the result.(remember one thing that there is no...
1
1,321
thread by: phanikumar32 | last post Nov 8 '14 by: Rabbit
Hi All, I want to get the previous row data in the same row with the new column name by comparing the above row data. Means that i have a table in sql server with 2 columns.First column name is "ItemCode" and the second column name is "Level". The second column has numeric data.so i want to compare the second row second column data with...
2
2,375
Seth Schrock
thread by: Seth Schrock | last post Nov 20 '14 by: Seth Schrock
I have three bit fields in a table that I have set to NOT NULL so that I can link to the table from MS Access. On each of these three fields, I have setup default constraints to set the value to False (0). This has been working for over a year now. All of a sudden, they have stopped working and every time I try to add a record to this table...
5
1,710
thread by: bpremlatha | last post Nov 22 '14 by: Rabbit
Dat file generated by X application.This file in paradox database folder of this application. The main output data from the machine saved in this dat file. But, I could not read the content. Help me on how to read this dat file. A part of dat file content: <,?s;™=<wA?5);M=Q8=M@W?M;J=u=iv?mU;=…= ƒƒ?Š;N...
3
1,368
thread by: vivektyagi14 | last post Nov 26 '14 by: Frinavale
I have 2 databases. These are host on different different servers. I want to join the tables of those databases. here..(1) UserId is same in both database table (2) Table name are TB1 and TB2 (3) Database are DB1 and DB2 i want to bind the data in a gridview from both database's tables. Note 1 :-Is this possible to...
0
1,222
thread by: andandy | last post Nov 30 '14 by: andandy
I have problem in my code when try to implement message: Invalid object name 'empl'. empl-> is my table code: Con.Open(); MessageBox.Show("connected"); SqlCommand cmd = new SqlCommand("INSERT INTO empl (name,password) VALUES ('" + textBox1.Text + "','" + textBox2.Text + "') ", Con);
0
1,517
thread by: Tamas | last post Dec 3 '14 by: Tamas
Hi, A have a problem to make ODBC connection from ORACLE database to MS SQL Server. Ive already achieved to connect with sqlcmd. So the servers see each others and can communicate. The ODBC driver fails at the authentication, because it cant read the user and password data from the odbc.ini file. I read that this happens because the odbc...
0
1,444
thread by: bpremlatha | last post Dec 5 '14 by: bpremlatha
How to insert db paradox file to sql automatically in a readable format. The db paradox file can be read by using software such as gnumeric spreadsheet and paradox d-base reader. From gnumeric spreadsheet , I can manually export db file to other format to be inserted to sql server. I would like to know if there are automatic way to convert db to...
1
3,670
thread by: nishu5047 | last post Dec 7 '14 by: Luuk
i have on procedure named as VouMasterEntry that is :- Create PROCEDURE . -- Add the parameters for the stored procedure here @VouNum int, @CustID nvarchar(30), @VouCat char(10), @VouType Char(15), @Seldate smalldatetime AS
5
1,444
thread by: Mudassir | last post Dec 7 '14 by: Mudassir
Dear all. Let me explain a simple scenario. suppose i have two tables tbl_Leads and tbl_Leads_Correspondence. and i have following data in both table tbl_Leads LeadID lName lDate 1 first 2014-11-24 22:22:52.523 2 second 2014-11-25 22:22:52.523 3 third 2014-11-26...
2
1,300
thread by: catherineadams | last post Dec 11 '14 by: Rabbit
I have a table Rent_Payment with subclasses checks and like_value (PK is payment_ID). Each of the subclasses have a description (ex: like_value has 'Fixed a car'). Tenant pays the Rent Payment (linked by FK tenant_ID). I want to display: Tenant, and description from the subclass of how they paid. I unioned all the subclasses but I don't...
3
1,904
thread by: catherineadams | last post Dec 12 '14 by: Rabbit
Hello! I have Contract and Rent_Payment. I want to make it mandatory one to mandatory many so that a Contract must have one or more Rent_Payments. I understand that after I create both tables, I then use How do I deal with this? I figured it out! Cant figure out how to delete though...
3
1,452
thread by: Mudassir | last post Dec 12 '14 by: Rabbit
Dear all i have 2 tables table 1 email name email1@gmail.com name 1 email3e3@gmail.com name 2 table 2 id email 1 email1@gmail.com
4
1,525
thread by: fran7 | last post Dec 15 '14 by: jforbes
Hi, I wonder if anyone has any pointers to this. I have a page querying cities from my database. fields to query in database country australia uk uk
1
1,885
thread by: borlowski | last post Jan 5 '15 by: ck9663
Hi, SQL back end, Access front end. I have a table for entities and folks now want to be able to capture notes on an entity. Lengthy notes of text/numbers. I've seen on the web a SQL data type of nvarchar (max) but have never used it. Would that work? Any other options? I know Access has a memo data type but believe that is not an option...
1
1,494
thread by: ajafri10 | last post Jan 5 '15 by: ck9663
This question was asked by Fredrik M?ller but can't see any replies. I have a problem with Transactional Replication over a WAN. Server A is a distributor and server B is a publisher. Sometimes the network goes down and replication fails. When the network comes up again the log reader at server A continues to fails. To get the replication going...
1
1,788
thread by: chamundeswari12 | last post Jan 5 '15 by: ck9663
How to create a password column and password must be encrypted?
2
7,552
thread by: GregM56 | last post Jan 20 '15 by: GregM56
I can SELECT CONVERT(VARCHAR(8), DXACCNUM) but I cannot SELECT CONVERT(VARCHAR(8),DISTINCT(DXACCNUM)) I am merely trying to make that int column 8 char wide. Any ideas from anyone? Thanks!
2
1,838
thread by: Djay | last post Jan 27 '15 by: Rabbit
Hi all, I have an SQL query that bring back data for customer contacts (name, telephone number, time of call, agent ID e.t.c) which is run manually every day. The business now requires me to extract this data every 15 mintues, and i don't want to have to do it manually as i wont have time to anything else with my day! I would like to find...
7
1,558
thread by: rswhitaker | last post Jan 28 '15 by: Rabbit
I am struggling with some results in which I had to take values from a single column and derive separate columns. Now I have three columns and three rows that I wish to combine into a single row where the column RowNum is share. Any tips? The query and results are below. SELECT DISTINCT RowNum, chem_name, amt, measure FROM (SELECT...

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.