6,934 Topics

Member Avatar for
Member Avatar for TheJohnSpecko

Hello everyone, I am using [CODE]ExecuteNonQuery()[/CODE] to execute a SQL command that inserts data into a SQL Server 2005 Database. I want to return the number of rows affected. I've read that this method returns the value, but I can't figure out how to access it. Help is very much …

Member Avatar for Mitja Bonca
0
184
Member Avatar for michaelzip

Hi. I'm having a problem on deleting a record using a function on SQL. DELETE FROM tblServices GROUP BY ServiceID HAVING MID(ServiceID,1,2)='SG' This query shows and error saying: Cannot group on fields selected with '*'. I tried adding a specific field, like this: DELETE ServiceID FROM tblServices GROUP BY ServiceID …

Member Avatar for crishlay
0
122
Member Avatar for Phil++

Okay, I created an application that used SQL. It works perfect on the computer that I compiled it on, but, when I release the application it shows an error like: "Cannot open this application, missing components" ... Also, on the computer I compiled it on, it shows the database file …

Member Avatar for kvprajapati
0
108
Member Avatar for moone009

In my form I have 5 text boxes where the user will be updating roughly 21 tables in the DB. Do I have to keep building a new sql connection for each event? Or is there a way for me to only have to write the connection code once? Basically …

Member Avatar for Mitja Bonca
0
151
Member Avatar for ceyezumma

Hello all. The Java Date and time classes are difficult. I think I have to use java.sql.Date which is a sub class of Date but is not a date unless the time is normalized to zero. so I've heard. I would like to work with my studentDOB first by collecting …

0
88
Member Avatar for Mike Bishop

afternoon all hope someone can help, i want to populate a report and print it directly without the user hitting the print button. i have this working in a diffrent project but for some reason it wont work in this one. i get the error missing parameter, on the last …

Member Avatar for Mike Bishop
0
180
Member Avatar for xanawa
Member Avatar for Gel

i wanna enter a value passed by javascript function to the database. is there a way to do that? thanks. var eng = 0; var nothome = 0; var nointerest = 0; var callback = 0; var booked = 0; function myFunction(i,txt, elemid){ var plural; if (i != 1) plural …

Member Avatar for diafol
0
219
Member Avatar for matthewskyle

I was asked to create a report similar to a gridview in asp.net for a windows form application. I don't really have much knowledge about reporting, especially not in VS 2010 unless its a gridview or something similar since it will suffice and noticed that you could create a report …

Member Avatar for kvprajapati
0
174
Member Avatar for ellorinco

good day guys! anyone can help me about this.. i need to create a login form with database (users.mdf) im newbie in c# .net i manage to create a connection my problem is the code behind the Login_Button thanks God bless

Member Avatar for ellorinco
0
200
Member Avatar for MeSam0804

hi I want to fetch data from sql and use them to make a new data I really like to store the records in variables and maybe do some operations on some of them , but the main point is to update three tables in ways that are not the …

Member Avatar for MeSam0804
0
141
Member Avatar for Behseini

Hi Guys, Can you please let me know if there is a sql command to list PK , Child and Parent of an identical table in oracle? Lets say I have a table called City , how can I get those information using SQL? Thanks

Member Avatar for hfx642
0
108
Member Avatar for judithSampathwa

hi i get an error saying cannot login to the ms sql server, i did all the things restarted the server, and changed the authentication mode to mixed mode nothing doesen't work, i created an another login with mixed mode authenitication the same error saying login falied to user sa …

Member Avatar for judithSampathwa
0
122
Member Avatar for judithSampathwa

hi there, i was doing some changes to the ms sql reporting server and after some time i get an error saying "the request failed or the service did not respond in a timely fashion. consult the event log or other applicable error log for details" i restarted the server …

0
86
Member Avatar for xanawa

i have these two tables connected to each other [B]tblOrder[/B] ID - int (P.K.) DateTime - datetime TotalPrice - money StaffID - int OrderTypeID - int ReservationID - int (F.K.) [COLOR="Green"]can be null[/COLOR] Paid - bit [B]tblReservation[/B] ID - int (P.K.) DateTimeReservation - datetime NumberOfPeople - int DateTimeOfEvent - datetime …

Member Avatar for xanawa
0
252
Member Avatar for monta2020

guys i'm usiung mysql Server version 5.1.36 and i wanted to use this stuff ' , ),{ in my input , but its always coming out an SQL Error for me when i use String Type also still got the error , i used text Type got SQL errors, i …

Member Avatar for vibhaJ
0
100
Member Avatar for Behseini

Hi guys, Can you please let me know how I can assign the result of a simple SQL query into a string? Let's say I have a query like: [CODE] string cmd = "Select FName From Emp Where EmpID = 20"); OracleCommand oc = new OracleCommand(cmd, oraConnection); [/CODE] As you …

Member Avatar for Mitja Bonca
0
236
Member Avatar for aajcl

Hi, I am new to SQL and just trying to self teach myself... I have written the below script and I am recieving an error. If anyone could help this would be much appreciated... [CODE]SELECT (CASE WHEN SL_PL_NL_DETAIL.DET_NOMINALCR = NULL THEN SL_PL_NL_DETAIL.DET_NOMINALDR ELSE SL_PL_NL_DETAIL.DET_NOMINALDR = NULL THEN SL_PL_NL_DETAIL.DET_NOMINALCR END)][/CODE]

Member Avatar for jbisono
0
466
Member Avatar for samueal
Member Avatar for samueal
0
80
Member Avatar for moshe12007

hi i have some problem with my sql code that the code : [CODE] SELECT * FROM MenUsers,WomenUsers [/CODE] MenUsers(Table) and WomenUsers(Table) whats the problem with this code? thanks....

Member Avatar for shine_jose
0
186
Member Avatar for jacob21

Hi, I am fetching data from the database.but I want to fetch it in proper format on PHP page. Suppose i insert some data like. 1)chair 2)bed 3)sofa n when i fetch it comes like that 1)chair2)bed3)sofa But i want to do in proper format. 1)chair 2)bed 3)sofa Need suggestion?

Member Avatar for jacob21
0
154
Member Avatar for Ted87

Hello Everybody! My problem is connected to the SQL Server Enterprise Managager. I worked with it for a day testing a database attaching/detaching it and after I closed the Manager the following problem occured. The local database seems to be dissapeared. However, the applications through the network reach it because …

Member Avatar for Ted87
0
208
Member Avatar for moone009

I cannot figure out why my update statement will not work? I figure it has to be something small that Im missing. [CODE] private void button2_Click(object sender, EventArgs e) { string strconn = "SERVER=15.5.7.9;User=sa;password=JFK3G785!340b;Database=addressstagingtable"; SqlConnection conn = new SqlConnection(strconn); conn.Open(); try { SqlCommand cmd = new SqlCommand(); cmd.Connection = conn; …

Member Avatar for abelLazm
0
87
Member Avatar for ashapbhalerao

This is my code to save values in MS access...but when i click on save it shows "INSERT INTO STATEMENT error" Plz som1 help!!!! [CODE]Private Sub save_Click() 'Text4.Text = cmbCustID.Text 'Text3.Text = cmbLocation1.Text 'Text5.Text = cboSize1.Text Dim temp As Integer 'On Error GoTo eror blnerror = False myValidation If blnerror …

Member Avatar for Jx_Man
0
157
Member Avatar for jon.kiparsky

So, I'm a tech writer, not a database guy, but I've been asked to develop documentation for my company's databases. This means I have some questions. It seems obvious to me that there must be some SQL documentation tools out there, but I have no idea what is used for …

Member Avatar for jon.kiparsky
0
95
Member Avatar for riyapethe

my table structre like this ID nAME 1 Mumbai,Pune,Chennai i want output of name like this Name Mumbai Pune Chennai pl help m 'new to sql Thanks in Advance

Member Avatar for crishjeny
0
69
Member Avatar for CrazyProgrammer

Hi all, This is ridiculous they teach so much at uni except what you need to know to program :-/ haha. This is actually gonna be a 2 part question but I'll do it one at a time. So I'm developing a small program for a company, this company has …

Member Avatar for crishjeny
0
182
Member Avatar for geoamins2

I would like to develop a database system using ms sql server 2005 express or 2008 express edition where the data may store in other than english language into tables. so i did it using mysql database but not working in 2005 express edition. Is there any solution?

Member Avatar for crishjeny
0
80
Member Avatar for Saikumar Adep

ProductID | id | TaxDescription| 2009001 | 1 | Excise 2009001 | 2 | Edu Cess on Exc 2009001 | 3 | S.HS.EduCess-Ex 2009002 | 1 | Excise 2009002 | 2 | Edu Cess on Exc 2009003 | 1 | Excise 2009003 | 2 | Edu Cess on Exc 2009003 …

Member Avatar for crishjeny
0
140
Member Avatar for victortiago

eu preciso de puchar somente um valor de uma tabela do sql, que eu estarei usando este valor para definir os usuários as roles, irá funcionar assim, o usuario loga, então é criada uma conexção no banco de dados e nesta conexão ele verifica em qual role este usuario esta …

Member Avatar for hirenpatel53
0
110
Member Avatar for jpadgett

Hello, I can't figure out what is wrong with this code. I poseted here in the PHP forum because I believe that is where my problem lies. I have a customError script that extracts the last 5 errors from the database and compares them with the current error that is …

Member Avatar for MariahGwen
0
155
Member Avatar for newack

Hello, I have not used Sql server. I have microsoft sql server 2008 installed. but when i click management studio, it says evaluation period expired. I can download sql server 2008 r2 developer from my university site. Should i go ahead and download sql server 2008 r2 developer and uninstall …

Member Avatar for Mitja Bonca
0
79
Member Avatar for ukfreak

Hi, I got a crystal report with:- main report subreport(Item_A) subreport(Item_B) There is a limit for the subreport to show only 5 record, if there is more then 5 records it should go to a new page. I have been trying to do this for 1 week, i tried so …

Member Avatar for ukfreak
0
256
Member Avatar for gruffy321

HI all, am fairly new here stil and hope to give back as much as i take , in time , experience and wisdom... (the wisdom bit is probably way off for now) I have a set of tables , but one table needs to show the information chosen in …

Member Avatar for gruffy321
0
187
Member Avatar for Arjun_Sarankulu

following is my code [CODE] namespace Test1 { public partial class Form1 : Form { string emp_code = ""; public Form1() { InitializeComponent(); } private void Uploadbutton_Click(object sender, EventArgs e) { openFileDialog1.ShowDialog(); filenametextBox.Text = openFileDialog1.FileName; }//Uploadbutton_Click private void save_to_DBbutton_Click(object sender, EventArgs e) { SqlTransaction transaction = null; SqlConnection connection_string = …

Member Avatar for jbisono
0
136
Member Avatar for doomfrawen

Hello friends. :(I have a problem but i don't know how to implement a solution. The problem is that the HDD's from two Windows Servers got corrupted [COLOR="red"](1.- Site Server, 2.- File Server)[/COLOR] and all the files PDF's and the main site(ASP) were unaccesible for a while, now i recovered …

Member Avatar for jkon
0
120
Member Avatar for Sarama2030

hi guys i've stored images in sql server. how do i retrieve the images and displaying them on the same page that sends the request. i kinda figured how to retrieve the images using the [CODE]file.outpustream [/CODE]. just need to know o i display the image using an image tag.

Member Avatar for tomato.pgn
0
119
Member Avatar for crazycat503

I am trying to connect to SQL SERVER 2008 from vb.net but failed with Error 40. If I try to connecton to server\sqlexpress, error 26 is raised. step by step guide or tip would be helpful.

Member Avatar for debasisdas
0
73
Member Avatar for akamini

I feel guilty about posting again but I need help again and I have tried other sources of help e.g google and asking someone who is familiar with vb.net but still can't find the solution to it. It must be another simple fix but I cant find any reference to …

Member Avatar for raffy3
0
346
Member Avatar for studentoflife

I return 30 tables or so from sql in a stored procedure. In the stored procedure I select these tables via... [CODE]select * from myTable1 select * from myTable2 select * from myTable3[/CODE] etc. These tables lose their sql table name when returned in a dataset and have default names …

Member Avatar for studentoflife
0
199
Member Avatar for klemme

Looking for an answer about how I can use relations in my DB, when a link is clicked. I have the main navigation in the top of the page, the table is called:"SUBJECTS", primary key is ID. I also have a local navigation in the left side of the page. …

Member Avatar for madCoder
0
163
Member Avatar for diana_j86

How to fill a combobox with a data stored in a table in sql server?.... Can we use stored procedure to do so? I tryed this code but it keeps giving an error message: "An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll" What does that mean???? My code: Private …

Member Avatar for kazekagerandy
0
787
Member Avatar for joban.ali

Hi Everyone, I have integrated a Google Map on my website, which is working in good order. The maps data such as location lat/lng is coming from database. At present all the location markers are appearing on the map. I have a php page which draws out all the sql …

Member Avatar for keval_hack
0
305
Member Avatar for Moirae

Hello everyone! I have field in database table that is image type. I have to create model for this table (mvc3) and I don't know which data type to use. Any hints??

Member Avatar for crishlay
0
72
Member Avatar for preston326

Hi, I'm a bit new to SQL and this is my question... Do I need to filter user input that has no connection with SQL database, e.g. $x=$_GET['pageno']; if ($x == 'help4') { print "This is help page no4."; <some mysql queries goes here> }

Member Avatar for diafol
0
87
Member Avatar for hannon565

This is old college assignment am doing to sharpen my sql skills, its cat test centre and this funtion is checking if the mechanic is available on certain date which is input from user in the anonymous block. the problem i m having durning testing is that the function result …

Member Avatar for pratik_garg
0
193
Member Avatar for adamholwerda

Hi, new to AJAX, trying to figure out how to do a very specific thing: I want to have a textarea update a database column and then pull down the info from that column and display it, without refreshing. I'm using JQuery and AJAX and PHP and SQL to do …

Member Avatar for hielo
0
174
Member Avatar for kirtee2209

hi..im doing a C# windows form application in visual studio 2008 and for the database im using SQL EXPRESS 2005..i need to create a crystal report. my question is when i start creating a new crystal report, using wizard, i get 1 window where i have to choose Data: i …

Member Avatar for abelLazm
0
920
Member Avatar for jacob21

SELECT DISTINCT City FROM Persons this query is for finding distinct(different) value. how to find duplicate values which are not find by Distinct query.i.e repetitive(duplicate) values.

Member Avatar for metalix
0
103
Member Avatar for xanawa

I am getting the value of a datetime picker and add it in the database but it is throwing an exception saying : [COLOR="Red"]The conversion of a char data type to a datetime data type resulted in an out-of-range datetime. The statement has been terminated.[/COLOR] This is my SQL Statement …

Member Avatar for abelLazm
0
220

The End.