2,935 Topics

Member Avatar for
Member Avatar for Ho$$@M_Sh2awa

I made an online application to store employees information in MS SQL,I used Disconnected model and I made my class for "DataSet configuration" and call method in it in The "Form_Load" event. This is the class public static string constr = ConfigurationManager.ConnectionStrings["cnn1"].ConnectionString; public static DataSet GetDataSet(string stored_name, string table_name, params …

Member Avatar for Sulaiman_1
0
340
Member Avatar for uDevv

Hey guys, what am i missing here: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Using sqlConn As New SqlClient.SqlConnection(sqlConnString) sqlConn.Open() sqlConn.Close() End Using End Sub Public Property ServerName() As String = "myip" Public Property DatabaseName() As String = "mytable" Public Property Login() As String = "sa" Public …

Member Avatar for oussama_1
0
177
Member Avatar for johnsmith123
Member Avatar for michael321
0
59
Member Avatar for rpv_sen

Hi I am using MSSQL ODBC Connetion for my project in PHP. I have created login form with PHP and MSSQL with ODBC Function. Can any one please help how to use SESSION to carry on to next page without get function.

Member Avatar for rpv_sen
0
2K
Member Avatar for davy_yg

Hallo, I get stuck when installing SQL Server 2012 : Services Account Name Password SQL Server Agent SQL Server Database Enginee SQL Server Analysis Services SQL Server Browser This Sharepoint Server connected to DCSHARE1 (Domain Controller) The problem is I do not know what to fill for Account Name & …

Member Avatar for davy_yg
0
245
Member Avatar for lord0o

Hi, I need to save the inserted password on MSSQL as md5 encrypted one. Basicaly when the user inserts the password on the textbox, it must be encrypted before storing it on the MSSQL Database. How can I do that? This was made from DreamWeaver CS6. Thank you the code: …

Member Avatar for lord0o
0
315
Member Avatar for ignnniter

Hello Im trying to display a label when my program starts, to check the server status.. For example if the user is successfully connected to the server it should say on the label "Connected" and if not the label should say "Not Connected" , my Database is located on a …

Member Avatar for ryanjayson
0
211
Member Avatar for pravin81

We have 2 Tables, One is Primary Table and another one is a Transaction Table. Both Tables are identical. We have to insert or update the record in Primary Table, based on Transaction Table. If a record is found identical on primary keys for Primary and Transaction Table, we would …

Member Avatar for Hpsvtw
0
99
Member Avatar for skyyadav

I wrote my first trigger and it giving error UES TRY GO CREATE TRIGGER cust_update ON TRY FOR UPDATE AS IF UPDATE (custno) BEGIN TRANSACTION RAISERROR('CUST NO CANNOT BE UPDATED',10,1) ROLLBACK TRANSACTION END Any idea `

Member Avatar for ryanjayson
0
127
Member Avatar for AmrMohammed

What is the meaning that Database management systems allow access to and storage of data independently of the interal representation of the data? what is meaning of independently of the interal representation of the data?

Member Avatar for pritaeas
0
71
Member Avatar for Geowil

I have been attempting to crack this nut for several hours now but I cannot figure out what combination of query code is required to achieve the exact results I am looking for. I have two tables: Music and Playlists The fields for Music: ID (Primary), Track_Name, File_Path, Date_Added, Artist, …

Member Avatar for Alberto Bucur
0
137
Member Avatar for AmrMohammed

Why is stored procedure is better than executing a sql query. What is meant by exeution plan

Member Avatar for Alberto Bucur
0
83
Member Avatar for G_Waddell

Hi all, I have a Windows 7 64 bit client that is running a 32 bit of software and so needs a 32 bit ODBC connection to the database. I of course ignored the Administrative Tools > ODBC manager because that will open the 64 bit and instead went to …

0
211
Member Avatar for gbhs

Hi Experts I don't have the least idea on how to rank (desc) the following sample ExamScores by CourseID , grouping by Level. Some help needed. gbhs Newbie Level StudentID CourseID CourseName ExamScore ScoreRank A 101 1 Math 11 A 101 2 French 3 A 101 3 English 7 A …

Member Avatar for eralper
0
136
Member Avatar for game4tress

I know that this question is asked a lot but still can't find the correct answer. I have a database on SQL Server 2012 Express Edition, that I need to protect the information and its structure. What's the best way to do it? Is there any way to protect the …

Member Avatar for eralper
0
109
Member Avatar for shivensingh
Member Avatar for visweswaran28

![e06bda938bd3817cedb4e3d69265b84c](/attachments/large/3/e06bda938bd3817cedb4e3d69265b84c.jpg "e06bda938bd3817cedb4e3d69265b84c") ![e06bda938bd3817cedb4e3d69265b84c](/attachments/large/3/e06bda938bd3817cedb4e3d69265b84c.jpg "e06bda938bd3817cedb4e3d69265b84c") ![e06bda938bd3817cedb4e3d69265b84c](/attachments/small/3/e06bda938bd3817cedb4e3d69265b84c.jpg "align-left") Hi, I have a below table of Content CUSTOMER ID QUESTIONS ANSWER 1 FirstName John 1 LastName William 1 Country India 1 Zip Code 60000 2 FirstName xxxx 2 LastName yyyy 2 Country US 2 Zip Code 123456 3 OrgName ABC Pvt Ltd 3 …

Member Avatar for urtrivedi
0
169
Member Avatar for de Source

Hi.. i want to get all columns from tbl_class where course_id of tbl_course is equal to course_id of tbl_class more over course_id of tbl_course should be thw one who has semester = 5 brife structure of tables are: tbl_class >class_id >course_id >class_room tbl_course >course_id >semester i have design this kind …

Member Avatar for rch1231
0
207
Member Avatar for haymen.roth.3

i have written this query to show total working time and overtime of an employee on particular date (if he has came) otherwise it doesn't show record for a person if his INTIME and TIMEOUT are empty but i don't want this now, i want if for a particular date …

Member Avatar for haymen.roth.3
0
232
Member Avatar for grafic.web

I need to add un hour to my date, how can i do??? This my code CASE WHEN candidat_rendezvous_date IS NOT NULL THEN 'candidat_rendezvous_date + 1Hour' END Thanks for your help

Member Avatar for grafic.web
0
157
Member Avatar for vishal anand.s

Hi i have a problem in binding DateTimePicker value from one form named SearchDoctor to existing form named Doctor. Here is the code of my Doctor form and it works: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.Sql; …

Member Avatar for Maligui
0
672
Member Avatar for ikrami

I have text file (attached image) i need to loop and get the values (with ellipse shape )into sql table the text file record usually started with (----)

Member Avatar for jstfsklh211
0
184
Member Avatar for vishal anand.s

Hi my name is vishal. For the past 1 week i been in the process of creating a dashboard using listview in c# windows forms with sql server 2008. I created listview named lstDashItems and populate it from a table named USERACTIVITIES in sql server 2008. The design of USERACTIVITIES …

Member Avatar for vishal anand.s
0
387
Member Avatar for masterjiraya

I have a project that must have centralization of databases that will have access to the web on a PHP script. I can merge MSSQL and MySQL databases if and only if they were both: 1.) On a same server or 2.) Of the same server type The problem is …

Member Avatar for masterjiraya
0
324
Member Avatar for gbhs

Hi Experts, I have to Pad some numbers that have decimal points and I have done it successfully as follows: SELECT case when len(myValue)=1 then RIGHT('000' + CAST(CAST(myValue AS float) AS VARCHAR(5)), 2) when len(myValue)=2 then RIGHT('000' + CAST(CAST(myValue AS float) AS VARCHAR(4)), 2) when len(myValue)=3 then RIGHT('000' + CAST(CAST(myValue …

Member Avatar for gbhs
0
158
Member Avatar for haymen.roth.3

i have wrote query to calculate TOTAL WORK TIME and Overtime of an employee based on Intime and outTime but can't figure out to put another column 'IsAbsent'. e.g. if person doesn't come on any specific date than his INtime and TimeOut would be empty then if both are empty …

Member Avatar for pritaeas
0
187
Member Avatar for rpv_sen

Hi Friend I am trying to connect my MSSql server 2008 R2 server using php. I am getting an error as below `Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\test\connect.php on line 4` and the code is below <?php $serverName = "servername\sqlexpress"; //serverName\instanceName $connectionInfo = array( "Database"=>"dbname", "UID"=>"us", "PWD"=>"ps"); …

Member Avatar for rpv_sen
0
286
Member Avatar for haymen.roth.3

i am given task to analyze and modify pre written large queries within small time, so please help me understanding it with times as ( SELECT t1.EmplID , t3.EmplName , min(t1.RecTime) AS InTime , max(t2.RecTime) AS [TimeOut] , t1.RecDate AS [DateVisited] FROM AtdRecord t1 INNER JOIN AtdRecord t2 ON t1.EmplID …

Member Avatar for cereal
0
290
Member Avatar for code739

please help me in this,how would i do some recursive statement in my stored procedure. here is what i want -- @requestcode will genereate some random string set @requestcode = (SELECT substring(@username,0,3)+'-'+SUBSTRING(CONVERT(varchar(255), NEWID()), 0, 9)) -- then i want to check if the string generated is existing to 'sampletable' select …

Member Avatar for BlindArcher
0
226
Member Avatar for Madiya122

I have following quary example. SELECT t1.TeamID, MemberList = substring((SELECT ( ', ' + FirstName ) FROM TeamInfo t2 WHERE t1.TeamID = t2.TeamID ORDER BY TeamID, FirstName FOR XML PATH( '' ) ), 3, 1000 )FROM TeamInfo t1 GROUP BY TeamID Its giving error "Incorrect syntax near the keyword 'FOR'." …

Member Avatar for Madiya122
0
1K

The End.