9,022 Topics

Member Avatar for
Member Avatar for MaxDes

I thought I had the command correct, but I wanted to make sure since I fail to connect in my app. Here is the connection command I use: New SqlConnection("Server=TestServer;Database=MasterDB;Integrated Security=SSPI") I have verified the server name, DB name, and that the server is using windows authentication. Any help would …

Member Avatar for kvprajapati
0
111
Member Avatar for itee

I have a table in SQL sever .How to create a dynamic dropdownlist using the entries in that table in such a manner that i am able to use the corresponding values to that entry that are given in the table?

Member Avatar for itee
0
148
Member Avatar for vipin narang

How to make the connection command in sql and sql query command in different function and then to link them to exequte the query in the web service and to call them in the main function

Member Avatar for finito
0
77
Member Avatar for Gospp

I want to build a Webservice that on given intervals request data from a SQL-server and update an internal list in the Webservice. The Webservice will be accessed from multiple clients and I don't to access to SQL-server every time the list is requested from the clients. Is this possible …

Member Avatar for pritaeas
0
429
Member Avatar for tashiDuks

Hello Everyone, I have designing a desktop application using VB.NET 2008 & SQL Server 2005. In my Application i have a frmUserRegistration to add a user & frmLogin to login to my application. i can add the user details in the database but my password seems to be in characters. …

Member Avatar for BigJames
0
3K
Member Avatar for prajaktaran

Hello, I have created a project on "Hospital Management". With Front end is Microsoft Visual studio2008 Windows Application (C#)& Back end is Microsoft SQL server 2008 It's Working Successfully. But the problem is setup is working only on that system where the project is done. If i try to start …

Member Avatar for kvprajapati
0
106
Member Avatar for Nfurman

Please someone can help me. I need a function which just returns the number of rows from known table. I tried it like: [CODE] CREATE FUNCTION getRows ( @id int ) RETURNS int AS BEGIN DECLARE @rownums int SELECT Count(*) FROM dbo.MainData where id=@id RETURN @rownums END [/CODE] But it …

Member Avatar for skgopy
0
279
Member Avatar for gsb1bee

Can you discuss the problem that arises when several customers try to make bookings at the same time and devise and how to implement a method to prevent double allocation of seats in a multi-user environment. I am using ASP.NET and Ms sql server 2008.

Member Avatar for dnanetwork
0
51
Member Avatar for ticktock

Hey all, having a little trouble transferring my listview items into a database. I have transfered all of the listview items into a List<> for use during the population of the items in my database here is my dataaccessor class, it contains the reader writer and writer statements generator: [CODE] …

Member Avatar for finito
0
288
Member Avatar for laljaseh

i have installed microsoft sql server 2005 that comes along with vb.net 2008 but after installing i couldn't find any option for ceating table and database can anyone help me

0
78
Member Avatar for Ms.passion

Hi everyone I'm really exhausted with this error I'm using visual studio and I'm trying to build a contact form And all the information should be saved in contact table in the database Would you please help me with this error? I tried a lot to figure what's wrong, but …

Member Avatar for Ms.passion
0
219
Member Avatar for hhpatek

hello I am using vb.net 2005 and sql server 2005. i am having problem with datagridview data manipulation. Actually, in master-detail i am displaying data of Master in textboxes and Detail in datagridview. i am using binding source for it. The main problem is that i have to directly enter …

Member Avatar for Srigokul
0
123
Member Avatar for ramesh866

hi everyone am a beginner in jsp side. i am working on a project where the UI is designed in HTML, validation in servlet and i want to store the relevant information in SQL server. I have glass fish server. how can this be done. please guide me

Member Avatar for ramesh866
0
50
Member Avatar for basma.lm

hi, i'm working on a windows application with sql server compact edition3.5 database. i was working with visual csharp 2008 express and now i have installed visual studio 2008 professional edition. the problem is that i can't open my database to see tables, i get this error message" the operation …

Member Avatar for kvprajapati
0
174
Member Avatar for VirendraThakre

Hi I am using two linked server Both have same tables by using sp_tables_ex 'linkedserver name' this I can see list of tables.One Emp table is available in that list but when I try select * from Openquery(linkedserver,'select * from public.Emp') then it show me error like Error message: ----------------------------------------------------------------------------------------- …

Member Avatar for drorharari
0
145
Member Avatar for Aldius

Hello all, I'm somewhat new to programming but I had a quick question. I have created a program to take a text file and convert it into a datatable. Unfortunately, however, I seem unable to attach this file to a database. I am getting an invalid object error stating that …

Member Avatar for detoxx
0
133
Member Avatar for Kingcoder210

Hi everyone! I am a junior database programmer. I need to know how can I save image in SQL SERVER 2000 by VB.NET? I made a table in SQL SERVER with two fields. One is Id[nvarchar] & another pic[nvarchar]. I got two forms there in VB.NET project. In the first …

Member Avatar for Teme64
0
3K
Member Avatar for lllllIllIlllI

I am currently doing a project where i am using C# and databases. I am using visual C# 2008 and i am having issues accessing the tables that i made. So what i have done is that i have a couple of tables, one with students in it, another with …

Member Avatar for kvprajapati
0
225
Member Avatar for breakid

Hi I am workin with c# VS2008 sql server 2005 I have A database from the kind of "Service-based databa" when i insert new data to my application all the changes are not save. If I insert the data threw my DataPreview(VS) all the data is save. I am working …

Member Avatar for finito
0
56
Member Avatar for Sueli
Member Avatar for sdhawan

Hi Guys, I am trying to insert hashtable in databse but one of the key in hashtable is null.Can anyone help me write an exception for this.Or if i can just move to the next key . Thanks a lot [code] private void btnUrdu_Click(object sender, EventArgs e) { SqlConnection cn …

Member Avatar for Ketsuekiame
0
151
Member Avatar for vs.vaidyanathan

if not exists (select * from sysobjects where name='amrreconAccountsTB') begin execute "create amrreconAccountsTB(acct_id char(2048) NULL)" end; Message from server 'NOCTREPI04' (Msg 156, Severity 15, State 2): error near the keyword 'end'. Can someone please help me and tell me what is the syntax error here?

0
124
Member Avatar for chen12m

I have to finish this project for tomorrow-so I'll Appreciate quick reply. I need to do reports in my projects. now I've created Data Environment and all that but in the SQL the only thing that work is if I select the entire table from the database. (like "select * …

Member Avatar for chen12m
0
277
Member Avatar for bghodsi

Hi folks: Can anyone tell me what I am doing wrong in the coding below: [code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim ConnectionString As String = "Server=hp;database=library;integrated security=SSPI" MessageBox.Show("Connection established") Dim sql As String = "SELECT snippetID, snippetName, snippetSource, snippetCode FROM snippet …

Member Avatar for meffe
0
105
Member Avatar for JustmeVSI

Hi guys. I'm pretty new to sql and I'm having some trouble with a store procedure. I tried to read about it by searching goggle but all the references i got to the topic contained to complex store procedures for me and my current level :P. Here is my simple …

Member Avatar for JustmeVSI
0
823
Member Avatar for thebluestar

I'm trying to study ASP and sql server 2005 to create the website.However, I don't know how to create a table having a column to store the image, I have never tried this before, I don't know sql server 2005 has data type of image or not. hmm, the flow …

Member Avatar for smariano77
0
107
Member Avatar for Ole Raptor

I have searched and I have searched but I can't find a way to display all instances of SQL Server in a combobox. Any help is greatly appreciated.

Member Avatar for johnhtod
0
896
Member Avatar for Dhammakirty
Member Avatar for Dhammakirty
Member Avatar for domingo

Hi, i have a program that connects with an sql database and it works fine with the sql. Now the problem comes when i publish. When i open the published program it gives me an error. An attempt to attach an auto-named database for file ..... A database with the …

Member Avatar for rozendaa@xs4all
0
122
Member Avatar for tuomari

I am trying to build an SQL query to compare date in my txtDate box to one in access database for my database search-page. I'm clueless as to which is the best method to do this. Obviously just comparing the textbox value doesn't work. This is my current if-function to …

Member Avatar for tuomari
0
153
Member Avatar for qasimidl

I m working with web parts in asp.net and I want to save my personal setting into db(sqlerver) how to use these methods or others which are present in sqlprovider 1) SavePersonalizationBlob 2) LoadPersonalizationBlobs etc Waiting and need help help it humble request

0
54
Member Avatar for duuguu

Hello everyone. I'm beginner and i trying to make time register system. But i can't insert my datetime to my database.Here's the code that i wrote [code] private void button1_Click(object sender, EventArgs e) { string dt; string dt2; DateTime date = DateTime.Now; DateTime date2 = DateTime.Now; dt = date.ToLongTimeString(); // …

Member Avatar for finito
0
205
Member Avatar for krokodajl

Hi Everyone. I have problems with solving a sql question. There is an assumption: The database of naval ships that took part in World War II is under consideration. The database has the following relations: Classes(class, type, country, numGuns, bore, displacement) Ships(name, class, launched) Battles(name, date) Outcomes(ship, battle, result) Ships …

Member Avatar for MehranNZ
0
779
Member Avatar for VirendraThakre

I want to upload photo on click in VB.NET and want to store it in SQL 2005,also want to retrive it in picture box on another click.

Member Avatar for elshan0011
0
121
Member Avatar for elexender

Hi all, I want to make a string like this: [QUOTE]SELECT * FROM "Alexander de Groot"[/QUOTE]. So i can later execute that sql statment. Im only having a problem creating the string. Let me show you: [CODE]string sTableName; char *SqlTableName; sTableName = DBLookupComboBox1->Text.c_str(); SqlTableName = new char[sTableName.size()+ 20]; strcpy(SqlTableName,"SELECT * …

Member Avatar for elexender
0
119
Member Avatar for kodak

I have been given a report that is generated by running the following query from a macro ( slightly edited to simplify )and I have not had a great deal of experience with Access. The report is grouped by Data.Type and sorted be Data.Date [ICODE][COLOR="Green"] SELECT DISTINCTROW Data.Type, Data.Date, Data.Code, …

Member Avatar for Reddy_Raghu
0
109
Member Avatar for fadi-ft

hey guys, this is me once again moving around data access. my problem now hide in the import process of an excel file that would be inserted into sql db. the problem is the excel file may be updated or changed and i have to periodically import it and perform …

Member Avatar for kvprajapati
0
174
Member Avatar for sdhawan

HI I ama reading text froma file that have word like "you're" and it gives me Unclosed quotation mark before the character string ') error.Can anyone help me with this .Thanks [code] using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; …

Member Avatar for kvprajapati
-1
742
Member Avatar for dwel
Member Avatar for vb5prgrmr
0
102
Member Avatar for BastienP

Hello everyone, I'm currently working on an automated process which extract user info from AD with csvde, then do some treatments with perl scripts, convert the csv file into xls in order to do some modifications by a specific user in Excel, then convert the xls to csv, format it …

Member Avatar for BastienP
0
250
Member Avatar for bghodsi

The following is the complete coding for moving data from sql to access, I get an error saying that Microsoft JET Database Engine missing (;) at the end of sql statement!!!! Could you tell me what I am doing wrong? Imports System.Data.OleDb Imports System.Data.SqlClient Public Class frmMain Inherits System.Windows.Forms.Form Private …

Member Avatar for bghodsi
0
173
Member Avatar for haribo83

I have a php page that displays records from a sql database. Each record is in a repeat region and has a submit form nect to it. The problem is if I submit one of the forms below the first in the list, the first form is validated and the …

Member Avatar for Member #120589
0
94
Member Avatar for marcel1

Please, try to help with this. I use case statement but for 2 arguments. Down here is the idea of what i want to get: select x case x when x = 'AB' and y like 'CD%' then x= 'CD' when x = 'ZZ' and y like 'CC%' then x= …

Member Avatar for teezecrost
0
179
Member Avatar for sdhawan

Hi, i am getting error Line 1: Incorrect syntax near 'Valuesstuntto'. and its an sql error.Can anyone help me with this thanks. [code] using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using GermanDict; using SimpleFrenchDict; using System.Web; namespace DicttoData { …

Member Avatar for sdhawan
0
364
Member Avatar for dwel

I'm trying to restore previously backup text file into sql server on specified database. Could it be possible using VB.NET? if possible please help me..

0
91
Member Avatar for dwel
Member Avatar for grafiksinc

Hello all, First off I am using VB.net I have a dropdown list in the Item template. I would like the user to select a value and update the database without clicking an update button. Here is the Code for the DDL [CODE]<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource2" DataTextField="provider" DataValueField="provider" AutoPostBack="True" AppendDataboundItems="true" …

Member Avatar for grafiksinc
0
141
Member Avatar for sdhawan

Hi , I am trying to insert the arraylist to database using sql .I have my code below.Can anyone help me with .My issue is that my insert statement doesnt work. Thanks [code] using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using …

Member Avatar for kvprajapati
0
392
Member Avatar for saeed_s261

[CODE]SqlConnection con = new SqlConnection(connection string); SqlCommand cmd = new SqlCommand("select bookfile from books where bookfile='....' " , con); con.Open(); SqlDataReader dr = cmd.ExecuteReader(); if (dr.HasRows) { // Is Exist }[/CODE] this code is for check whether a book file is exist in database?

0
44

The End.