2,935 Topics

Member Avatar for
Member Avatar for hemanhunters

Hi, I want to join a table with itself to get all possible combinations of the variable Name in two columns. My first attempt was this: [CODE] SELECT P1.Name, P2.Name FROM Pairs AS P1 INNER JOIN Pairs AS P2 ON P1.Group = P2.Group WHERE P1.Name <> P2.Name [/CODE] The thing …

Member Avatar for dickersonka
0
66
Member Avatar for peanutong

how do i select data from a table by sorting the first word from a column? for example: "user1 hello" "user2 one two three" "user3 where are you" "user1 im fine" how can i select all the data starting with "user1"?

Member Avatar for prasannapower
0
112
Member Avatar for dlacloche

So, I've been poking around in MS SQL for a while and it kinda looks like Access a little, but it seems harder to enter data, change data, etc. Not very user friendly to a person used to Access. I've been using Enterprise Manager and Query Analizer, but it takes …

Member Avatar for dickersonka
0
60
Member Avatar for dlacloche

I did find a thread that kinda answered this, but it was from last year, so I thought I'd start a new thread about this: In Access the data type is memo, what is the 'memo' data type in MS SQL? I might possibly need to have space for 15,000 …

Member Avatar for dlacloche
0
63
Member Avatar for choudhuryshouvi

I've developed a software using VB6 and MSSQL 7.0. Now I need to create a backup-restore program on behalf of my software. For this I need to fetch down all the table names located inside the database used in the software. My database name is -->BILLING_SYSTEM and I've also created …

Member Avatar for dhanya_piit
0
187
Member Avatar for newMeg

Hi, I need help on this sql. I have a table a and b and i need to select where a.id=b.id and b.mid=1 and few hardcoded a.id which does't exist in table b. i used left outer join but its still listing all in a table. Can anyone help pls. …

Member Avatar for huangzhi
0
121
Member Avatar for Marc_CAT

Hello to everyone! I'm developing a C# application that manages an Access database. In order to perform a word search within the database registers, I have used a SQL command based on the 'LIKE' condition. I attach the complete code below: [code] myConnection.Open(); OleDbDataAdapter adapt_pregunta = new OleDbDataAdapter(); string query_c …

0
77
Member Avatar for Killian

Hi all, Does anyone have any experience with a PHP Web-based form builder/administrator that's designed to use MS SQL? I know there's a lot of PHP/MySQL-based products out there, but I have to use MS SQL. I need to be able to create Web forms relatively easily with a Web-based …

Member Avatar for khess
0
140
Member Avatar for priyapratheep

Hi I want to write a query In my table data like this sapno plant amt status a SG20 7 1 b HK10 24 4 a HK10 60 4 b SG50 20 12 a HK10 7 4 c HK10 7 4 if more than one sapno is same value then …

Member Avatar for dickersonka
0
71
Member Avatar for BlueGemini

Can MS SQL can convert accented characters to non-accented characters? Ex. Ã -> A Thanks

0
53
Member Avatar for nemom

Hello everybody,, I'm developing a web application using ASP.NET and i'm new in databse (basic knowledge:) ) ,,and i have to create a table that stores any changes made in the database tables includes (insert,update and delete) ,,i googled about how to do it and i found many articles about …

Member Avatar for nemom
0
154
Member Avatar for George_E

Hey guys I have installed SQL Server 2005 Developers edtion and I have noticed that I dont have SQL Management Studio feature available. I am currently in the process of reinstalling just incase I missed out an option during installation. What concerns me is: Is Management Studio available on SQL …

Member Avatar for dickersonka
0
99
Member Avatar for darlo23288

Hi, i juz wanted to know how to write this following codings in app.config. In ASP.Net in web.config: [Code]<configuration> <appSettings> <add key = "stu" value = "database = Gred; trusted_connection = yes; server = (local)"> </appSettings> </configuration>[/COde] N in codings part: [COde]Imports System.Data.SqlConnection Dim con As New SqlConnection (ConfigurationSetting.AppSettings("stu"))[/COde] Now …

0
56
Member Avatar for TJR

I have 2 tables, a table with header records and a table with detail records. If I run the following, I am shown that I have 96 duplicate rows. select item_id,count(*) from in_qty_price_bracket_hdr where item_id is not null group by item_id having count(*) > 1 The item_id field is not …

0
49
Member Avatar for shashkun

hii i wanted to insert questions, options and correct answer in the database(Multiple choice questions). I have around 8000 questions to be inserted. I tried with copying entire content from word into notepad and provided delimiters for questions and answers but the entire question appears in a single line(it is …

Member Avatar for cutepinkbunnies
0
82
Member Avatar for morsdyce

Hello all, I'm having a problem with converting a script from MySQL to MSSQL .. the problem is within this query: [CODE]select * from data where name LIKE '$name' AND spot LIKE '$line' AND piret LIKE '$piret' [B]AND timestamp >= '$before' AND timestamp <= '$after' ORDER BY timestamp DESC[/B][/CODE] the …

Member Avatar for morsdyce
0
135
Member Avatar for ramanathank

I am new to MS SQL. I would like to create a table variable and insert some and and get the data from a java file. I am able to declare and table variable and insert the data into the table. But when i try to get "Must declare table …

Member Avatar for kb.net
0
106
Member Avatar for pritha

Hello, Before posing question I have googled on pivot query,pivot sql query but none of the sites explained the syntax abut making a new table from a pivot query .And that's the reason I asked the question .I know the pivot query but how make a table of the results …

Member Avatar for kb.net
0
113
Member Avatar for kavithabhaskar

Hi I have 4 comboboxes..and any value that I choose.. I get a whole set of fields displayed in my datagrid view.. I want to make a difference..the value that I choose in the combobox, has to appear green in color in my datagridview. How do I do this ? …

Member Avatar for kb.net
0
159
Member Avatar for dcahan

I'm working on what i consider to be one of the hardest DB designs i've ever had to do in my 10+ years of programming/design/architecture. I really need to bounce my ideas off on other experts but i'm having trouble finding the right forums. 1) is this a good forum? …

Member Avatar for kb.net
0
79
Member Avatar for stewpyd

Hi, I want to select the part no(part_no), transaction date (curr_date), and in stock qty (cost_layer_qty) from table inv_tran where the product first goes into negative quantity. Do I use a group by for curr_date, or how do I do this? Thanks in advance

Member Avatar for kb.net
0
60
Member Avatar for mstory22

I got a table that looks like this: ACCOUNT---------NAME------------BROUTE------------BACCOUNT-----------VALUE ---[COLOR="Red"]NEED[/COLOR] 111111................BILL...............77777777...............88888888...............345.34-- 222222................BOB...............77777777...............88888888...............0.0-------- 111111................BILL...............77777777...............88888888...............454.34------[COLOR="Red"]2225.67[/COLOR] 111111................BILL...............77777777...............88888888...............657.67---- 222222................BOB...............77777777...............88888888...............768.32-- 444444................JIM...............55555555...............66666666...............23.12---- 333333................TIM...............55555555...............66666666...............36.58-------[COLOR="Red"]685.02[/COLOR] 333333................TIM...............55555555...............66666666...............625.32--- There are over 62 thousand entries with different values for columns listed above. I want to use (BROUTE + BACCOUNT) as a primary key for this query. "Bank account + bank routing …

Member Avatar for kb.net
0
124
Member Avatar for edek

Is there any way to know that there was an 'insert' into SQL Server's database without checking it like every minute (in C# / VB.NET)? Thanks in advance.

0
67
Member Avatar for kavithabhaskar

Hi: I am writing code in VB but SQL is the major role here.. I am checking if MFG="DELL" in table1 and if that is there I need a msg box saying "DELL is supported" [QUOTE] Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim con …

Member Avatar for AntonioGK
0
97
Member Avatar for jp2sql

Can a stored procedure be written with a column name? For Table1 with ColA, ColB, ColC, I want a query like: EXEC sp_Mine 'ColA', '100%' I want the results to be like: SELECT ColA, ColB, ColC FROM Table1 WHERE ColA Like '100%' I tried setting up this stored procedure, but …

Member Avatar for AntonioGK
0
80
Member Avatar for edek

Hi! Is there any way I can save a database as an SQL file? Or at least save schema if saving data is not possible. Thanks in adv.

Member Avatar for AntonioGK
0
149
Member Avatar for vkk

Hi, I have the following data in a table called staging, and it is in the format. C1,C2 and C3 are column Headers. C1 C2 C3 41 te cc 51 te cc 42 te cc 41 te cc 51 te cc 42 te cc 41 te cc 51 te cc …

Member Avatar for vkk
0
133
Member Avatar for Acidburn

Hey guys I've got the following code drawn up. But it doesnt work has I wanted it to and can't figure out why. If the user doesn't exist or if that username has been disabled then the query should return -1 otherwise it returns 0. Now that doesn't happen. It …

0
44
Member Avatar for jgoering

I'm working on a project that just needs to know that its 08:00 or 14:01. I dont need or want to store anything about date. When I store the time and then try to check it against the current time I'm runnig into problems. where (timeofevent = Convert(char(19),current_timestamp)) this doesnt …

Member Avatar for AntonioGK
0
151
Member Avatar for gargmanoj

Hi all, I m a newbie to sel server. I want to read transaction logs in SQL Server 2000 for doing some processing on them. I asked many persons reagrding this one told me that it can be doone by creating replication of database. so if anybody having any idea …

Member Avatar for massif
0
82

The End.