Click here to Skip to main content
15,888,802 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Search for sql server instances present in PC and Local network Pin
desanti7-Aug-16 1:12
desanti7-Aug-16 1:12 
QuestionKeep images to be open only by my program Pin
desanti5-Aug-16 10:23
desanti5-Aug-16 10:23 
AnswerRe: Keep images to be open only by my program Pin
Dave Kreskowiak5-Aug-16 10:43
mveDave Kreskowiak5-Aug-16 10:43 
GeneralRe: Keep images to be open only by my program Pin
desanti5-Aug-16 12:47
desanti5-Aug-16 12:47 
GeneralRe: Keep images to be open only by my program Pin
Eddy Vluggen5-Aug-16 12:59
professionalEddy Vluggen5-Aug-16 12:59 
GeneralRe: Keep images to be open only by my program Pin
desanti5-Aug-16 14:00
desanti5-Aug-16 14:00 
GeneralRe: Keep images to be open only by my program Pin
Dave Kreskowiak5-Aug-16 13:15
mveDave Kreskowiak5-Aug-16 13:15 
Questionvb.net 2010 that uses sql Pin
dcof5-Aug-16 6:04
dcof5-Aug-16 6:04 
In an existing vb.net 2010 application that accesses a sql server 2012 database, I only want to modify the exsiting sql to add a comment saying what
cs.attributeID = 2775 and cs.attributeID = 2771 means in the following sql right next to the line where the sql actually exists.

Const sql As String = "SELECT CS2775.Personid,SchoolYearValue,SchoolYearName,CS2775.StatusDateTime " _
& " from " _
& "(SELECT cs.Personid,cs.value as SchoolYearValue, cd.name as SchoolYearName , [date] AS StatusDateTime " _
& " FROM TEST.DBO.customstudent cs WITH (NOLOCK)" _
& " JOIN TEST.DBO.CampusDictiONary cd " _
& " ON cs.attributeid = cd.attributeID AND cs.value =cd.code" _
& " WHERE cs.attributeID = 2775 " _
& " GROUP BY personID, cs.value, cd.value,name,[date]) as CS2775 " _
& " LEFT JOIN (SELECT Personid,value as Edcounsel1CP, max([date]) AS StatusDateTime " _
& " FROM TEST.DBO.customstudent WITH (NOLOCK)" _
& " WHERE attributeID = 2771 " _
& " GROUP BY personID, value ) as CS2771 " _
& " ON CS2771.PersonID = CS2775.Personid " _
& " AND CS2771.StatusDateTime = CS2775.StatusDateTime " _
& " WHERE CS2775.Personid = @studentlink ; "

I want to make this change since I am adding more 2 attribute values to an extensive long list of existing attribute values. Management would
not let me change the existing sql since it is not cost effective.

The only thing I know what to do is to place the comments prior to the string assignment statement. Thus would you show me the code of how I can add
the comments I would like to place in the sql listed
AnswerRe: vb.net 2010 that uses sql Pin
Richard Deeming5-Aug-16 7:12
mveRichard Deeming5-Aug-16 7:12 
GeneralRe: vb.net 2010 that uses sql Pin
dcof7-Aug-16 9:19
dcof7-Aug-16 9:19 
Question.NET - Acrobat 11 crashes when opening PDF Pin
vaultboy4-Aug-16 7:16
vaultboy4-Aug-16 7:16 
Questionvisual basic in powerpoint Pin
Member 126697404-Aug-16 1:01
Member 126697404-Aug-16 1:01 
QuestionRe: visual basic in powerpoint Pin
Richard MacCutchan4-Aug-16 1:19
mveRichard MacCutchan4-Aug-16 1:19 
QuestionRuntime add com library reference Pin
BobbyStrain24-Jul-16 8:23
BobbyStrain24-Jul-16 8:23 
QuestionDisplay network signal strength (windows form app) Pin
dell-gl62m23-Jul-16 3:11
dell-gl62m23-Jul-16 3:11 
AnswerRe: Display network signal strength (windows form app) Pin
Richard MacCutchan23-Jul-16 4:09
mveRichard MacCutchan23-Jul-16 4:09 
GeneralRe: Display network signal strength (windows form app) Pin
dell-gl62m23-Jul-16 5:32
dell-gl62m23-Jul-16 5:32 
GeneralRe: Display network signal strength (windows form app) Pin
Richard MacCutchan23-Jul-16 5:44
mveRichard MacCutchan23-Jul-16 5:44 
GeneralRe: Display network signal strength (windows form app) Pin
dell-gl62m23-Jul-16 5:53
dell-gl62m23-Jul-16 5:53 
QuestionExtracting Outlook messages metadata to an Excel spreadsheet Pin
Alex911010-Jul-16 23:01
Alex911010-Jul-16 23:01 
AnswerRe: Extracting Outlook messages metadata to an Excel spreadsheet Pin
Alex911010-Jul-16 23:58
Alex911010-Jul-16 23:58 
QuestionRe: Extracting Outlook messages metadata to an Excel spreadsheet Pin
Richard MacCutchan11-Jul-16 2:04
mveRichard MacCutchan11-Jul-16 2:04 
AnswerRe: Extracting Outlook messages metadata to an Excel spreadsheet Pin
Alex911011-Jul-16 2:20
Alex911011-Jul-16 2:20 
GeneralRe: Extracting Outlook messages metadata to an Excel spreadsheet Pin
Richard MacCutchan11-Jul-16 2:31
mveRichard MacCutchan11-Jul-16 2:31 
GeneralRe: Extracting Outlook messages metadata to an Excel spreadsheet Pin
Alex911011-Jul-16 3:05
Alex911011-Jul-16 3:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.