Question : Win7/XP Encrypted file - won't let me open

Hey guys,

All of a sudden, a file I've encypted (a spreadsheet with sensitive data on it), won't let me open it. It sits on a network and tells me 'Access denied. Contact your administrator' (win7) ... I am a network administrator and creator of the file.

Why has this started happening? It was OK 6 days ago.

I've restarted my machine and changed my password. I still cannot open my file.

Any advice.

Thanks,

S.S.

Answer : Win7/XP Encrypted file - won't let me open

Just a correction on terminology, your not getting multiple datasets but rather multiple tables within a dataset. FillSchema shouldnt be required for filling a dataset. I would remove lines 16-19 in your coding example
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
Dim cn As New SqlConnection(My.Settings.Conn_DB)
        cn.Open() 'DataAdapter will open the connection so this is not needed.

        Dim SqlAttr As New SqlDataAdapter
        Dim ds As New DataSet

        Dim sqlcmd As New SqlCommand
        With sqlcmd
            .Connection = cn
            .CommandType = CommandType.StoredProcedure
            .CommandText = sql
        End With

        SqlAttr.SelectCommand = sqlcmd
        SqlAttr.Fill(ds)
Random Solutions  
 
programming4us programming4us